Theo's Typesafe CultTTC
Theo's Typesafe Cult2y ago
10 replies
Ben

Prisma/tRPC query failing 1/2 the time, but only in Prod

So I have an app, in my local dev environment, everything is working as expected in regards to the DB, I do a fetch to my dev DB and I get the data back as expected every time. I just deployed to Vercel, connected to the prod DB(hosted by Supabase), and 1/3 of the time the fetches work fine, 2/3 of the time I'm getting an error from Prisma that the fetch(s) couldn't be completed, "error occurred during query execution". Trying to think about how to approach diagnosing this since I can't reproduce in dev. Any help is appreciated!
Screenshot_2024-04-12_at_9.png
Solution
GitHub
Bug description I'm connecting to Supabase with their connection pooling enabled and I'm seeing the following 500 errors after multiple refreshes of the same page, until eventually it force...
prepared statement \"s0\" already exists · Issue #11643 · prisma/pr...
Was this page helpful?