Replies: 8 comments 1 reply
|
IS ANYONE GOING TO HELP WITH THIS ISSUE??? |
|
I am unable to reproduce this issue unfortunately. Did this issue not occur before with Prisma v6? |
|
It occurs in prisma v6 and v7 also....after numerous repeated trials it successfully pushes or migrate changes but the process is exhausting. It still happened today also....I was done with a feature and I wanted to push then I started getting the same annoying error....after multiple trials it went successfully after about 1hr 30mins spent on repeatedly running the same command. |
|
This is a common issue when using Prisma with Supabase (or Neon). A few things to try:
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
directUrl = env("DIRECT_URL")
}The pooler URL goes through PgBouncer and is what your app should use at runtime. The
This setup has worked reliably for me with Prisma 5.x/6.x/7.x + Supabase. |
|
This issue with intermittent Postgres connection failures in Prisma 7.x is a known problem that can have multiple causes. Here are a few things to try:
Also, check the Prisma 7.x migration guide for any breaking changes related to connection handling. |
|
I assume this issue is resolved now. Please feel free to open a new GitHub Discussion in case you are still facing any issues. Thanks! |
|
In my case, this happened because I was connected to a VPN, specifically Proton VPN. After turning it off, everything worked fine. |
|
Yes same here using prisma 7+ with Postgres. |
Uh oh!
There was an error while loading. Please reload this page.
Question
For the past few weeks now, especially since the new prisma 7.x update....I have been having trouble connecting with my supabase postgres db via string connection. Whenever I run commands like npx prisma db push or migrate...I get an error telling me that the database is not active which is wrong cause it is....sometimes on random occasions it works fine but most times it just keeps giving me problems....I've tried changing to neon, same outcome....I've tried changing from IPv6 and IPv4 enabled postgres string to match my ISP capabilities (Nigerian Network - Airtel) but still no luck, What do I do because this is slowing down my productivity lately?
How to reproduce (optional)
npx prisma db pushornpx prisma migrate dev --name file-initExpected behavior (optional)
No response
Information about Prisma Schema, Client Queries and Environment (optional)
No response
All reactions