Prisma Client: Query Engine `engineType=binary` incompatible with Node.js v17?
See original GitHub issueNote: Node.js v17 is an intermediary release and won’t become an LTS version and should not be used for production workloads.
I created a PR in our e2e tests suite here https://github.com/prisma/e2e-tests/pull/2137 to add a minimal test for v17 which succeeds on engineType “library” but fails on “binary” with https://github.com/prisma/e2e-tests/runs/3973259270?check_suite_focus=true#step:6:375
$ ts-node ./script.ts
PrismaClientKnownRequestError:
Invalid `client.user.deleteMany()` invocation in
/home/runner/work/e2e-tests/e2e-tests/generic/basic/script.ts:7:21
4
5 // A `main` function so that we can use async/await
6 async function main() {
→ 7 await client.user.deleteMany(
connect ECONNREFUSED ::1:43951
at cb (/home/runner/work/e2e-tests/e2e-tests/generic/basic/node_modules/@prisma/client/runtime/index.js:38537:17)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
code: 'ECONNREFUSED',
clientVersion: '3.4.0-dev.10',
meta: undefined
}
Rerunning the test results in the same error.
We should reproduce locally and see what’s happening here, looks like something about IPv6 maybe? ECONNREFUSED ::1:43951
Node.js v17 changelog here (didn’t find anything related) https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V17.md
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Query engine (Concepts) - Prisma
Prisma's query engine manages the communication with the database when using Prisma Client. Learn how it works on this page.
Read more >Prisma 3.5.0 Release - GitClear
Prisma Client : Query Engine engineType=binary incompatible with Node.js v17? CI: Test on Node.js Active LTS v16 · After upgrading from 3.2.1 to ......
Read more >Prisma ECONNREFUSED error after running prisma migrate ...
Prisma runs natively on the new M1 chips and there's nothing to configure, but I had the same issue, Prisma error: connect ECONNREFUSED ......
Read more >@prisma/client - npm
Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data.
Read more >prisma mongodb how to deal with schema update - You.com
Read Prisma Client provides a powerful API for reading data in MongoDB, ... Not found Current platform : darwin Query Engine (Node-API) :...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am unable to reproduce this with Node v17. I think it is just a random flaky test in e2e. Here is my successful run with Node 17 and binary engine:
Prisma 2.x users are hitting this in the wild, and as the error message contains
ECONNREFUSED
mistake it for Prisma being unable to connect to the database: https://github.com/prisma/prisma/issues/10095