Forums

ASGI Web App runs fine, then 502-backend error

After following the instructions for running an ASGI webapp, my application runs very well. After I close my browser and come back to the app after some time, the page tries loading for a bit, then I'm faced with an 'Error code: 502-backend' page.

Server access and error logs show nothing unusual, so I'm having trouble determining root cause. Reloading the server works but isn't a viable solution. Are there any additional tools I can use to troubleshoot this? I understand that ASGI is still in development, so if this is a known issue, please disregard.

Thank you.

If it helps, the app is based off of FastAPI. I can provide more information if needed.

If you don't see any errors in the error log, I suggest adding more logging to your web app to try catching were it fails.