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 Result::unwrap() on an Err value: Any { .. } #24225

Open
smg-helenyemima opened this issue May 16, 2024 · 2 comments
Open

called Result::unwrap() on an Err value: Any { .. } #24225

smg-helenyemima opened this issue May 16, 2024 · 2 comments
Labels
bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/bug A reported bug. team/client Issue for team Client. topic: rust panic topic: sql server Microsoft SQL Server

Comments

@smg-helenyemima
Copy link

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

Versions

Name Version
Node v16.18.0
OS windows
Prisma Client 5.13.0
Query Engine b9a39a7ee606c28e3455d0fd60e78c3ba82b1a2b
Database sqlserver

Logs

prisma:tryLoadEnv Environment variables not found at null
prisma:tryLoadEnv Environment variables loaded from D:\Learn\NestJS\api-gateway\.env
prisma:client checkPlatformCaching:postinstall 
prisma:client checkPlatformCaching:ciName 
prisma:tryLoadEnv Environment variables not found at null
prisma:tryLoadEnv Environment variables loaded from D:\Learn\NestJS\api-gateway\.env
prisma:client dirname D:\Learn\NestJS\api-gateway\node_modules\.prisma\client
prisma:client relativePath ../../../prisma
prisma:client cwd D:\Learn\NestJS\api-gateway\prisma
prisma:client clientVersion 5.13.0
prisma:client:libraryEngine internalSetup
prisma:client:engines:resolveEnginePath enginePath D:\Learn\NestJS\api-gateway\node_modules\.prisma\client\query_engine-windows.dll.node
prisma:client prisma.$queryRaw(UPDATE Item SET @P1 WHERE id = @P2, [["name = 'Laptop'","quantity = 2000"],"2"])
prisma:client:libraryEngine sending request, this.libraryStarted: false
prisma:client:libraryEngine library starting
prisma:client:libraryEngine library started

Client Snippet

// PLEASE FILL YOUR CODE SNIPPET HERE

Schema

// PLEASE ADD YOUR SCHEMA HERE IF POSSIBLE

Prisma Engine Query

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

jkomyno commented May 17, 2024

Hi @smg-helenyemima, can you please share the contents of schema.prisma?
Can you also paste the panic stacktrace?

From the logs, it seems see you were running an update operation via queryRaw(), declaring two intermediate query parameters and passing an array of data. Can you please show us the original Prisma Client snippet?

Thanks!

@jkomyno jkomyno added bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. topic: sql server Microsoft SQL Server topic: rust panic team/client Issue for team Client. kind/bug A reported bug. labels May 17, 2024
@Jolg42
Copy link
Member

Jolg42 commented May 28, 2024

Hey @smg-helenyemima,

Did you get a chance to take a look at the previous comment?

Without further information, we'll have to close this issue. Thank you 🙏

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. kind/bug A reported bug. team/client Issue for team Client. topic: rust panic topic: sql server Microsoft SQL Server
Projects
None yet
Development

No branches or pull requests

3 participants