-
As far as I understand although the default max_connections limit is 60 from Postgres, if we use supavisor to connect to it we shouldn't be restricted by that right? Or is there also an upper limit to how many connections supavisor can support? This the exact error I get FYI, I'm establishing a new database connection on every user request then close it once the request returns, similar to how serverless functions work even though it is a long-running process. |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 10 replies
-
Having the exact same issue, are you using Prisma? There are some reports prisma x supavisor doesnt work properly, it completely evaporates all of the connections you have and the only solution is db restart,. |
Beta Was this translation helpful? Give feedback.
-
I'm facing the same issue with Next.js (App Router) + Prisma on Vercel. At first, the Prisma client couldn't connect to the DB but turned out that Adding |
Beta Was this translation helpful? Give feedback.
-
I'm also seeing this issue but not using Prisma, using pg-pool and PgBoss for queuing. Any progress since? |
Beta Was this translation helpful? Give feedback.
-
same issue here! |
Beta Was this translation helpful? Give feedback.
-
Seeing this issue with vercel next.js serverless and prisma |
Beta Was this translation helpful? Give feedback.
-
Same issue. Even when way below the limit. |
Beta Was this translation helpful? Give feedback.
-
I found a temporary fix. Project Settings > Database > Network Restrictions Click "Restrict All Access" and then re-enable access. |
Beta Was this translation helpful? Give feedback.
-
Generally speaking, it’s because you are creating too many connections too quickly for whatever connection limits are currently in place for your project. Any combination of the following will help:
|
Beta Was this translation helpful? Give feedback.
-
I had a similar issue, using pg or node-postgress, I kept receiving this error. Solution was simple: Supabase now defaults to session mode and you have to go to your Supabase dashboard and change the port to 6543 to use their transaction mode. |
Beta Was this translation helpful? Give feedback.
-
Having similar issues using Spring Boot. I have no applications or users using this database at this moment, and this error keeps appearing over and over again. Any solution? |
Beta Was this translation helpful? Give feedback.
Generally speaking, it’s because you are creating too many connections too quickly for whatever connection limits are currently in place for your project. Any combination of the following will help: