Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Better instructions on Query Engine panic #610

Closed
janpio opened this issue Mar 29, 2020 · 1 comment · Fixed by prisma/prisma#2260
Closed

Better instructions on Query Engine panic #610

janpio opened this issue Mar 29, 2020 · 1 comment · Fixed by prisma/prisma#2260
Assignees
Labels
kind/improvement An improvement to existing feature and code. tech/typescript Issue for tech TypeScript. topic: dx
Milestone

Comments

@janpio
Copy link
Contributor

janpio commented Mar 29, 2020

On query engine errors, you get a message like this:

...
Error in Prisma Client:
PANIC: column on null constraint violation error in
/root/.cargo/git/checkouts/quaint-9f01e008b9a89c14/a1decce/src/connector/postgres/error.rs:67:35

This is a non-recoverable error which probably happens when the Prisma Query Engine has a panic.
Please create an issue in https://github.com/prisma/prisma-client-js describing the last Prisma Client query you called.

A big improvement here would be to tell people to also try again with DEBUG=* set. That will include the query and mutation exactly how the user ran it.

@janpio janpio added kind/improvement An improvement to existing feature and code. topic: dx labels Mar 29, 2020
@timsuchanek timsuchanek added the process/candidate Candidate for next Milestone. label Apr 9, 2020
@divyenduz divyenduz added this to the Beta 3 milestone Apr 9, 2020
@janpio janpio added the tech/typescript Issue for tech TypeScript. label Apr 9, 2020
@divyenduz divyenduz removed the process/candidate Candidate for next Milestone. label Apr 9, 2020
@timsuchanek timsuchanek self-assigned this Apr 15, 2020
@Jolg42
Copy link
Contributor

Jolg42 commented Apr 21, 2020

What about this?

This is a non-recoverable error which probably happens when the Prisma Query Engine has a panic.
Please try again and set the environment variable `DEBUG=*` and create an issue in https://github.com/prisma/prisma-client-js describing the last Prisma Client query you called and include the logs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/improvement An improvement to existing feature and code. tech/typescript Issue for tech TypeScript. topic: dx
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants