Sleeping functions

6 months ago

When a function is inactive for a while, it goes to sleep mode. And then the subsequent call throws an error as in the attached screenshot. What is the solution to this, if I want to host a cloud function to railway?

Attachments

Solved

9 Replies

Railway
BOT

6 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


Do subsequent requests work or this is for all request?


Status changed to Awaiting User Response Railway 6 months ago


angelo-railway

Do subsequent requests work or this is for all request?

6 months ago

this happens when the function is sleeping. The first request going to a sleeping function gives that error, and then the next ones work well.


Status changed to Awaiting Railway Response Railway 6 months ago


6 months ago

If the function does not wake up within 10 seconds you will see errors.


Status changed to Awaiting User Response Railway 6 months ago


brody

If the function does not wake up within 10 seconds you will see errors.

6 months ago

but it wakes up automatically when it is called, so why the errors?


Status changed to Awaiting Railway Response Railway 6 months ago


6 months ago

It could return an error on first start.


Status changed to Awaiting User Response Railway 6 months ago


brody

It could return an error on first start.

rmod-institchu
PRO

6 months ago

This isn't ideal, any solution to this or a workaround?


Status changed to Awaiting Railway Response Railway 6 months ago


Status changed to Solved atharv-av3 6 months ago


6 months ago

this makes it very unreliable because of the failing start request


Status changed to Awaiting Railway Response Railway 6 months ago


6 months ago

I'm sorry, but your application returning an error would be out of our control.


Status changed to Awaiting User Response Railway 6 months ago


Railway
BOT

6 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 6 months ago


Loading...