Forums

502-backend error every time until refresh

Hello,

I'm hosting a flask app with a virtual environment, and I consistently get a 502-backend error the first time I visit the page for the day. Upon refresh, it resolves, but I would like to avoid this. Happy to provide any logs, etc.

It would be good to know what is written to the logs at the time that's happening, yes. The error log might have something, but with a 502 error the server log is most likely to have useful information.