Max
Max
PPrisma
Created by Max on 7/12/2024 in #help-and-questions
error with simple request
Hi, I am getting this error with simple query, I am using nextjs with mongodb, prisma accelerate.
Invalid `prisma.user.count()` invocation:
This request could not be understood by the server: {"type":"UnknownJsonError","body":{"code":"P6004","message":"The Query did not produce a result within the maximum allowed execution time of 10 seconds."}} (The request id was: 8a203459c8718237)
PrismaClientKnownRequestError:
Invalid `prisma.user.count()` invocation:


This request could not be understood by the server: {"type":"UnknownJsonError","body":{"code":"P6004","message":"The Query did not produce a result within the maximum allowed execution time of 10 seconds."}} (The request id was: 8a203459c8718237)
at _n.handleRequestError (/Users/max/workspace/abc.io/node_modules/@prisma/client/runtime/library.js:122:6927)
at _n.handleAndLogRequestError (/Users/max/workspace/abc.io/node_modules/@prisma/client/runtime/library.js:122:6235)
at _n.request (/Users/max/workspace/abc.io/node_modules/@prisma/client/runtime/library.js:122:5919)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async l (/Users/max/workspace/abc.io/node_modules/@prisma/client/runtime/library.js:131:9116)
at async Home (webpack-internal:///(rsc)/./app/page.tsx:26:27) {
code: 'P5000',
clientVersion: '5.16.2',
meta: { modelName: 'User' }
}
Invalid `prisma.user.count()` invocation:
This request could not be understood by the server: {"type":"UnknownJsonError","body":{"code":"P6004","message":"The Query did not produce a result within the maximum allowed execution time of 10 seconds."}} (The request id was: 8a203459c8718237)
PrismaClientKnownRequestError:
Invalid `prisma.user.count()` invocation:


This request could not be understood by the server: {"type":"UnknownJsonError","body":{"code":"P6004","message":"The Query did not produce a result within the maximum allowed execution time of 10 seconds."}} (The request id was: 8a203459c8718237)
at _n.handleRequestError (/Users/max/workspace/abc.io/node_modules/@prisma/client/runtime/library.js:122:6927)
at _n.handleAndLogRequestError (/Users/max/workspace/abc.io/node_modules/@prisma/client/runtime/library.js:122:6235)
at _n.request (/Users/max/workspace/abc.io/node_modules/@prisma/client/runtime/library.js:122:5919)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async l (/Users/max/workspace/abc.io/node_modules/@prisma/client/runtime/library.js:131:9116)
at async Home (webpack-internal:///(rsc)/./app/page.tsx:26:27) {
code: 'P5000',
clientVersion: '5.16.2',
meta: { modelName: 'User' }
}
19 replies