a year ago
Hi everyone,
I'm running a Python Streamlit app on Railway, and I'm encountering an issue when the app is waking up. Despite knowing there’s now a 10-second window to start accepting traffic, I still get an error during the wake-up process.
Is there a way to display a custom message like "The app is waking up, please wait…" to users while the app initializes?
Thanks in advance for your help!
8 Replies
a year ago
does your app take longer than 10 seconds to start?
No I don't think so - Because if I reload when I get the 502 Bad Gateway error - I directly arrive on the app
a year ago
please provide a minimal reproducible example
When the app is sleeping connect via the URL :
https://digginmix.up.railway.app/
=> 502 Bad Gateway
Refresh the page after some time
=> The app is loading
So I was wondering if there is a way to display a message like 'The app is waking up, please refresh in few second'
a year ago
there's no way to display such a page
a year ago
please provide a minimal reproducible example.. with code
sorry should have been more clear on the with code part
a year ago
There is a way to display such a page, but it would involve heavy configuration + a separate app on your end. Likely not worth it