PANIC: called `Option::unwrap()` on a `None` value in query-engine/core/src/interpreter/query_interpreters/nested_read.rs:231:50
See original GitHub issueBug description
Hi, I’m suddenly getting this on our Prisma server:
Thrown with args: {}
Resolver info : { prev: undefined, key: 'me', typename: 'Query' }
Model : User
Error : PrismaClientRustPanicError2 [PrismaClientRustPanicError]:
Invalid `prisma.user.findUnique()` invocation:
PANIC: called `Option::unwrap()` on a `None` value in query-engine/core/src/interpreter/query_interpreters/nested_read.rs:231:50
This is a non-recoverable error which probably happens when the Prisma Query Engine has a panic.
How to reproduce
- Launch your prisma project
- Leave it running for ~20 hours
- See the above error
Expected behavior
As Douglas Adams wrote, “Dont panic!”
Prisma information
Using paljs and nexus
query { me { id } }
Environment & setup
- OS: Linux using Docker node:16-buster
- Database:
generator client {
provider = "prisma-client-js"
previewFeatures = ["selectRelationCount", "filterJson", "referentialActions", "nApi"]
}
datasource db {
provider = "mysql"
url = env("DATABASE_URL")
}
- Node.js version: 16
Prisma Version
"@prisma/client": "2.28.0",
"prisma": "2.28.0",
Issue Analytics
- State:
- Created 2 years ago
- Comments:24 (11 by maintainers)
Top Results From Across the Web
called `Option::unwrap()` on a `None` value in query-engine ...
Hi Prisma Team! My Prisma Client just crashed. It looks like this is a critical bug because after it happens, no more query...
Read more >Panicked at 'called `Option::unwrap()` on a `None` value ...
Hi! I'm currently porting the Lox language from Crafting Interpreters , but I've been stuck for a while in an annoying bug.
Read more >libpnet error: thread 'main' panicked at 'called `Option::unwrap ...
It seems that adding tcp_header.set_options() results in a panic. thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', ...
Read more >stylo: panicked at 'called `Option::unwrap()` on a `None` value'
stylo: panicked at 'called `Option::unwrap()` on a `None` value' ... 30: std::panicking::try::do_call 31: <unknown> Redirecting call to abort() to ...
Read more >Called `Option::unwrap()` on a `None` value - Editors and IDEs
I get this macro expansion warning with matklad.rust-analyzer v 0.2.776 with VSCode but not with cargo builld. If I take out the a...
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 FreeTop 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
Top GitHub Comments
I can reproduce this issue. Please see this repo for a small reproduction. It seems as though this Rust Panic occurs when a relationship is created using a non-unique constraint. Some connectors check for this (SQLite) but others don’t and cause a runtime error (MySQL)
Notes:
My hunches are: