-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prisma calls hanging on Cloudflare Workers #128
Comments
FYI I think this is an issue with this package, or at least an issue in with the docs. I removed Prisma completely and attempted to query my Neon database directly using a When I set this, queries start working again:
According to the docs here this shouldn't be required to work in Cloudflare workers, so I think it's a bug. I also tried to set the ws constructor as I'm using Node compatibility mode but requests continued to hang. |
@jmif Did you test this with Prisma too? My prisma.ts
|
Yeah - adding the |
Maybe the difference is I use NextJS (next-on-pages). |
Not sure if this is a Prisma issue or a Neon issue, so opening both (Prisma issue here)
When running with wrangler dev using Prisma + NeonDB, the promises from basic database calls do not resolve, but the results are reflected in the database. I've followed the instructions here.
Steps to reproduce
I've created a repro here.
Expected result
Request does not hang and inserts two records.
Actual result
Request hangs, promise of initial query does not resolve, but initial query is successful in that it's result is reflected in database.
Environment
OS: macOS
Database: Neon Postgres 16
Node.js version: 20.11.1
The text was updated successfully, but these errors were encountered: