I managed to deploy my Node JS API working on my server via digital ocean, and it works great—for a few hours. I can run queries from a GraphQL client and get responses just fine. But, after a few hours (usually overnight), it stops functioning and gives a 502 error at my website instead. How do I work around and debug this error? Any help is appreciated!
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.
Click below to sign up and get $200 of credit to try our products over 60 days!
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
It sounds like your app has stopped working or crashed for some reason.
You can restart it with:
Let me know how it goes!