classic 'Application failed to respond' error - Flask App
manrabs
FREEOP

7 months ago

Flask App deployment seems to work fine. Nothing out the ordinary in the deploy logs

I'm unable to access the link to the backend service though, keep getting the 502 error of application failed to respond (which is apparently somewhat of a regular occurrence).

I'm new to this platform and can't move forward. I've attached logs of the situation to help shed more light. Help please.

Solved$10 Bounty

3 Replies

Railway
BOT

7 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!


Railway

Hey there! We've found the following might help you get unblocked faster: - [📚 Application Failed to Respond](https://docs.railway.com/reference/errors/application-failed-to-respond) - [🧵 Deploy app with vue 3 and vite](https://station.railway.com/questions/deploy-app-with-vue-3-and-vite-ed465a4f) - [🧵 Flask App: Application Failed to Respond](https://station.railway.com/questions/flask-app-application-failed-to-respond-f857211b) - [🧵 Persistent 502 "Application failed to respond" on new PHP/Nginx Project](https://station.railway.com/questions/persistent-502-application-failed-to-re-86affad9) If you find the answer from one of these, please let us know by solving the thread!

manrabs
FREEOP

7 months ago

None of these work for me. For added context, here's my docker file attached as well

Attachments


7 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 7 months ago


manrabs
FREEOP

7 months ago

oh snap. I changed the app.run line to include the host bit in my app.py file and it's working now! Thank you!

does host parameter always have to in the app.run line?
do i also have to add the expose $port command in dockerfile? I didnt change it yet from the original dockerfile (See screenshots in initial post) what does that do?
the output in deploy logs are a bit different now. it includes two new IPs (0.0.0.0, which i added to the app.run like you suggested, and a 10.250.10.134 which i'm not sure where that's coming from)

p.s. sorry for all the questions, I'm excited it seems to work now but wanna know why

Attachments


Status changed to Solved brody 7 months ago


Loading...