MaxListeners error with Prisma 4.3.1 #16335
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/client
Issue for team Client.
tech/typescript
Issue for tech TypeScript.
topic: logging
topic: performance/memory
Bug description
I have two prisma clients in my nextjs application connecting to separate databases.
I've placed a
process.on("warning", (e) => console.warn(e.stack))
and I get the following message:MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGINT listeners added to [process]. Use emitter.setMaxListeners() to increase limit at _addListener (node:events:465:17) at process.addListener (node:events:487:10) at process.once (node:events:531:8) at ExitHooks.installHook (webpack-internal:///(api)/./prisma/generated/client2/runtime/index.js:27027:17) at ExitHooks.install (webpack-internal:///(api)/./prisma/generated/client2/runtime/index.js:26998:14) at new LibraryEngine (webpack-internal:///(api)/./prisma/generated/client2/runtime/index.js:27077:19) at PrismaClient.getEngine (webpack-internal:///(api)/./prisma/generated/client2/runtime/index.js:31495:24) at new PrismaClient (webpack-internal:///(api)/./prisma/generated/client2/runtime/index.js:31467:37) at eval (webpack-internal:///(api)/./lib/prisma.ts:13:20) at Object.(api)/./lib/prisma.ts (/.next/server/pages/api/my_endpoint.js:242:1)
Unclear what the fix is here. I've seen some closed tickets and discussion bringing this issue up, but no resolution.
How to reproduce
Expected behavior
No response
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: