I have a Gradle program that runs a Discord bot on Heroku. The bot handles all possible exceptions, and it runs beautifully on my PC. I switched to Heroku, because I do not want the bot to go offline when I need to restart my PC or for other reasons.
According to the app's logs, the program has no errors. A few minutes after deployment, the logs simply say "State changed from starting to crashed." Is there a way to get more details about why the app crashed? I'm 90% convinced my app does not crash on its own, as it has been running on my PC for quite some time with no problems.
Every once in a while, the logs will say "State changed from crashed to starting" and the program will rerun as if I redeployed the app, but I did not. Could Heroku be cycling the app in some way?
Either way, the app only runs for around two to five minutes, never longer, with no errors in the logs. Any help is appreciated!