[Fixed] - Next.js remaining connection slots are reserved for non-replication superuser connections

I am frequently getting the above error. Database: Supabase Github: https://github.com/ShaikRehan123/questionPaperCreation I recently shifted from prisma to drizzle, help appreciated.
GitHub
GitHub - ShaikRehan123/questionPaperCreation
Contribute to ShaikRehan123/questionPaperCreation development by creating an account on GitHub.
Solution:
Did you try to restart your Supabase instance? It happened to me sometime after a deploy on fly.io (with Remix, so we can agree it's not related to a specific platform/framework)
Jump to solution
4 Replies
Solution
rphlmr ⚡
rphlmr ⚡17mo ago
Did you try to restart your Supabase instance? It happened to me sometime after a deploy on fly.io (with Remix, so we can agree it's not related to a specific platform/framework)
rphlmr ⚡
rphlmr ⚡17mo ago
I don't know if Nextjs required something specific when deployed on vercel/edge
dumbboy
dumbboyOP17mo ago
Thanks @Raphaël Moreau , It works on restart.
dumbboy
dumbboyOP17mo ago
Future Reference. If still facing this issue, check this out. https://github.com/orgs/supabase/discussions/5212#discussioncomment-2069444
GitHub
Error querying the database: db error: FATAL: remaining connection ...
We have an app hosted on Vercel with Supabase providing the database. The app is in development and I am often the only one using it but I frequently get this error: Error querying the database: db...
Want results from more Discord servers?
Add your server