Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

called Option::unwrap() on a None value #23129

Closed
arthurfiorette opened this issue Feb 14, 2024 · 3 comments
Closed

called Option::unwrap() on a None value #23129

arthurfiorette opened this issue Feb 14, 2024 · 3 comments
Labels
bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. domain/client Issue in the "Client" domain: Prisma Client, Prisma Studio etc. kind/bug A reported bug. topic: rust panic topic: unwrap error

Comments

@arthurfiorette
Copy link
Contributor

Hi Prisma Team! My Prisma Client just crashed. This is the report:

Versions

Name Version
Node v20.11.0
OS linux-musl-openssl-3.0.x
Prisma Client 5.6.0
Query Engine e95e739751f42d8ca026f6b910f5a2dc5adeaeee
Database postgresql

Logs

risma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:request_handler {"name":"PrismaClientRustPanicError","clientVersion":"5.6.0"}
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client prisma.$queryRaw(SELECT 1, [])
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true

Client Snippet

// The code is behind a NDA, however I can share more details privately.

Schema

// The code is behind a NDA, however I can share more details privately.

Prisma Engine Query

{"X":true}}}
@jkomyno
Copy link
Contributor

jkomyno commented Feb 14, 2024

Hi @arthurfiorette, thanks for this issue.
We kindly ask you to share the stacktrace as well, showing the line in which Option::unwrap() was called.

About the schema and TypeScript @prisma/client snippet: If you're able to provide a minimal reproduction with non-NDA data, that'd be great. Otherwise, please share it privately via schemas@prisma.io, so we can take a look without your code leaking externally. Thank you!

@jkomyno jkomyno added bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/bug A reported bug. topic: unwrap error domain/client Issue in the "Client" domain: Prisma Client, Prisma Studio etc. topic: rust panic labels Feb 14, 2024
@Jolg42
Copy link
Contributor

Jolg42 commented Mar 6, 2024

@arthurfiorette Did you have a chance to take a look at @jkomyno's comment above?

@SevInf
Copy link
Contributor

SevInf commented Mar 18, 2024

Hey @arthurfiorette ,

With the lack of information and our inability to reproduce this issue, we're now closing it. Feel free to comment if you have any updates about it.

Thank you 🙏

@SevInf SevInf closed this as not planned Won't fix, can't repro, duplicate, stale Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. domain/client Issue in the "Client" domain: Prisma Client, Prisma Studio etc. kind/bug A reported bug. topic: rust panic topic: unwrap error
Projects
None yet
Development

No branches or pull requests

4 participants