Sometimes after a while of idleness and I reload the app I get an error 500. The Problem though is that there are no errors that would show up in the logs. If I hit the refresh button everything is back to normal again.
My guess is that there is something wrong with the DB connection, but why? and how would I figure this out?
Update: It’s actually not random. After like 15 minutes of not using the app the first request is always Error 500, but right after a refresh the site shows up just fine.