My page works for some time but then it crashes with error:
sqlalchemy.exc.TimeoutError: QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30 (Background on this error at: http://sqlalche.me/e/3o7r).
Link to my code: https://github.com/ValtersHuns/aaaa
Im using Heroku and Postgresql with free plan.
What I have tried:
I have tried searching for this error everywhere but still havent found answer or fix.