[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:Jump to 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)
4 Replies
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)
I don't know if Nextjs required something specific when deployed on vercel/edge
Thanks @Raphaël Moreau , It works on restart.
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...