I have a simple API (Fast API) python app through a Dockerfile on DO App Platform. When I deploy it fresh it works really well. After about 24 hours of being idle, the server will respond with a 500 for about 5-10% of requests (to the same endpoint)…
I’ve narrowed it down to a DB Connection error: Interface already closed. But it only happens when deployed, and being idle for about 24 hours. Been trying to reproduce locally (no luck), and directly after a fresh deploy. After a fresh deploy, I can hit the URL 1000 times with no issues.
Any Digital Ocean App Platform specific things I should look at to continue troubleshooting ?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.