R
Railway•3w ago
json

Dropped requests when App Sleeping enabled?

Based on my understanding from the docs (and how I'd expect this feature to work), app sleeping is supposed to keep a request that hits a sleeping instance dangling until it's woken up, then resolve it. First question: is that right? If yes, it doesn't seem to be working. I have a Node API deployed on Railway with app sleeping enabled. Once it goes to sleep and I make a request, I get an "Failed to respond" error. Eventually after a few more tries the application woke up, and the request goes through. I thought maybe the problem was the lack of a health check, but I added this and it hasn't made a difference. What am I missing?
No description
7 Replies
Percy
Percy•3w ago
Project ID: 56cafcfa-394c-46c9-a811-dc3207bad3dc
json
json•3w ago
56cafcfa-394c-46c9-a811-dc3207bad3dc
Brody
Brody•3w ago
To your first question, yes that's how it's supposed to work. We are aware it's currently not working as designed and we have an internal ticket for it, but right now it's unfortunately not the highest priority as it can be solved by disabling app sleeping. for your reference the health check does not come into play when waking an app.
json
json•3w ago
I see, thanks for the info. Was hoping to enable it for all the services we create for PR environments since we can have many of those at a time and those services obviously rarely receive traffic. Hope to see it resolved soon 🖖
Brody
Brody•3w ago
I've added your discord thread to our internal ticket so that I'm able to follow up here when it's fixed!
json
json•3w ago
great, thanks!
Brody
Brody•3w ago
No problem!
Want results from more Discord servers?
Add your server