Forums

Error code: 504-loadbalance

Please, due to "Error code: 504-loadbalancer" my apps at https://ejmvsys.pythonanywhere.com/ become unusable because of a failure: every time I prepare a pdf from python, The app stales, for maybe 10 minutes, and return the PYTHONANYWHERE error page: Something went wrong :-(

This website is hosted by PythonAnywhere, an online hosting environment. Something went wrong while trying to load it; please try again later.

Error code: 504-loadbalancer

The 504 error is a symptom, not the cause -- it means that your website took more than a few minutes to return a response to the incoming request, so the system timed out.

What code are you using to create the PDF? Does it take a long time if you try to run the same code from a console?