Heroku server for my app keeps on crashing

I deployed a react app with the server being hosted on Heroku, and the backend/Heroku keeps on crashing after a few page loads or messages I send on the app. To clarify, the app works initially with no signs of impending error, and then...crash. I made numerous changes to my code to try and find the problem. Nothing. Thanks in advance for any help.


  • createPool

    Just in case this helps anyone in the future...I set up mySQL DB using createConnection instead of createPool. If I am not mistaken, pool dynamically creates connections so that the server does not crash when lots of users connect to it.