I recently deployed an app to Heroku using Postgres free tier as database.
I am using Django 3.2
Everything was working fine until I started getting a mail with the following error:
Internal Server Error: / OperationalError at / FATAL: remaining connection slots are reserved for non-replication superuser connections
This happens anytime I open the site. It just started doing this.
I thought waiting a while would solve the problem, but it didn’t.
- What does this error mean?
- What causes the error?
- How can I solve it?
My CONN_MAX_AGE is set to 500.