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
9 Replies
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!
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
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
Status changed to Awaiting User Response Railway • 6 months ago
brody
It could return an error on first start.
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
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
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