a year 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
a year ago
Hey there! We've found the following might help you get unblocked faster:
- 🧵 I need to add a custom domain without CNAME set.
- 🧵 Connection refused when service sends requests to sleeping service through private network until woken up
- 🧵 502 Error On Sleepy Apps
If you find the answer from one of these, please let us know by solving the thread!
Status changed to Awaiting User Response Railway • 11 months ago
angelo-railway
Do subsequent requests work or this is for all request?
a year 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 • 11 months ago
Status changed to Awaiting User Response Railway • 11 months ago
brody
If the function does not wake up within 10 seconds you will see errors.
10 months ago
but it wakes up automatically when it is called, so why the errors?
Status changed to Awaiting Railway Response Railway • 11 months ago
Status changed to Awaiting User Response Railway • 11 months ago
brody
It could return an error on first start.
10 months ago
This isn't ideal, any solution to this or a workaround?
Status changed to Awaiting Railway Response Railway • 11 months ago
Status changed to Solved atharv-av3 • 10 months ago
Status changed to Awaiting Railway Response Railway • 10 months ago
10 months ago
I'm sorry, but your application returning an error would be out of our control.
Status changed to Awaiting User Response Railway • 10 months ago
10 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 • 10 months ago