I have a Node.js app hosted on Heroku. Sometimes, there is insignifiant JS errors (variable not defined, because a 3rd-party API error), then the App crashes with H10 error, and all the future requests are crashing also (even a GET on an .jpg). Yea, my app crashed and I have to reboot it manually.
My question is, how to avoid this kind of situation ? How to reboot the app automatically after a crash ? Or maybe how to prevent the app to crash. I cannot prevent all the millions possible cases as I'm depending on multiple 3rd-party API that can change the response body at any time...
Thank you!