P
Prisma5mo ago
Max

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' }
}
15 Replies
Nurul
Nurul5mo ago
Hello Max, I assume this is happening only for the initial query, right? Your subsequent queries work as expected?
Skeptical
Skeptical5mo ago
Hi, I am also experiencing the same issue, personally, it IS only happening in the initial query, the subsequent queries (I assume the queries after it) are indeed working.
Nurul
Nurul5mo ago
Our team has taken a note of this and are working on resolving this. I'll inform you as soon as this is resolved.
Skeptical
Skeptical5mo ago
Amazing! However, do you mind helping with another problem? If you can pop in here... (Thread)
Nurul
Nurul5mo ago
@Max @Skyy This issue is caused due to a bug in MongoDB Rust Driver. We have reported the bug here: https://github.com/mongodb/mongo-rust-driver/issues/1170 MongoDB team has acknowledged the bug and created a Jira issue here: https://jira.mongodb.org/browse/RUST-1994 We are in touch with the MongoDB team and are taking measures to expedite this 🙏 @Skyy I'll respond in the thread you posted 🙏
Skeptical
Skeptical4mo ago
Hi! 😄 Any update? As I can't see much happening in the Jira issue.
Nurul
Nurul4mo ago
Hey, I see that the issue was assigned to an engineer. I hope there will be some movement in this week. If not, we will follow up with the MongoDB team 🙏
Skeptical
Skeptical4mo ago
Awesome!
xhulz
xhulz4mo ago
Hello 🙂 It seems the issue was resolved yesterday 08/19/2024 according to the ticket. Do you have any idea when the patch for the Accelerate driver will be released? https://jira.mongodb.org/browse/RUST-1994
Nurul
Nurul4mo ago
Hey @Max @Skyy @xhulz The bug is indeed resolved by the MongoDB team and we have verified it. The timeout issues are resolved with the mongodb driver fix. This will be out on next tuesday - 27th August with Prisma version 5.19.0 The issue would be resolved as soon as you upgrade to prisma version 5.19.0 🎉
xhulz
xhulz4mo ago
Thank you @Nurul (Prisma) !
Skeptical
Skeptical4mo ago
This is great news! Thank you so much for all your help! You were GREAT help with this 😄
Nurul
Nurul3mo ago
@Max @Skyy @xhulz The bug fix is out. You can upgrade to prisma version 5.19.0 to try it out. Can you please upgrade and try out the bug fix. It should fix the timeout issue 🙏
xhulz
xhulz3mo ago
Hey @Nurul! Works like a charm man! Thank you so much 🙂
Nurul
Nurul3mo ago
I am glad to hear that! 🎉 Thank you all for your patience and help while we worked on fixing this 🙏
Want results from more Discord servers?
Add your server