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
The error is incorrectly pointed out when using the $transaction method #14373
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
tech/typescript
Issue for tech TypeScript.
topic: $transaction
Related to .$transaction(...) Client API
topic: transaction
Milestone
Comments
aqrln
added
team/client
Issue for team Client.
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
labels
Jul 19, 2022
Reproduced with |
garrensmith
added
topic: $transaction
Related to .$transaction(...) Client API
topic: transaction
tech/typescript
Issue for tech TypeScript.
process/candidate
labels
Jul 28, 2022
SevInf
added a commit
that referenced
this issue
Oct 17, 2022
SevInf
added
bug/2-confirmed
Bug has been reproduced and confirmed.
and removed
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
labels
Nov 9, 2022
SevInf
added a commit
to prisma/prisma-engines
that referenced
this issue
Nov 11, 2022
Adds `batch_request_idx` property to user facing errors. On the client, that would allow us to build correct error message for `$transaction` errors. Ref: prisma/prisma#15433, prisma/prisma#14373
SevInf
added a commit
to prisma/prisma-engines
that referenced
this issue
Nov 11, 2022
Adds `batch_request_idx` property to user facing errors. On the client, that would allow us to build correct error message for `$transaction` errors. Ref: prisma/prisma#15433, prisma/prisma#14373
SevInf
added a commit
that referenced
this issue
Nov 11, 2022
Engine PR: prisma/prisma-engines#3384 Uses newly added `batch_request_idx` property of an errors to identify and correctly report error location within a batch. Fix #15433 Fix #14373
SevInf
added a commit
to prisma/prisma-engines
that referenced
this issue
Nov 11, 2022
Adds `batch_request_idx` property to user facing errors. On the client, that would allow us to build correct error message for `$transaction` errors. Ref: prisma/prisma#15433, prisma/prisma#14373
SevInf
added a commit
that referenced
this issue
Nov 11, 2022
Engine PR: prisma/prisma-engines#3384 Uses newly added `batch_request_idx` property of an errors to identify and correctly report error location within a batch. Fix #15433 Fix #14373
SevInf
added a commit
that referenced
this issue
Nov 11, 2022
Engine PR: prisma/prisma-engines#3384 Uses newly added `batch_request_idx` property of an errors to identify and correctly report error location within a batch. Fix #15433 Fix #14373
SevInf
added a commit
that referenced
this issue
Nov 14, 2022
Engine PR: prisma/prisma-engines#3384 Uses newly added `batch_request_idx` property of an errors to identify and correctly report error location within a batch. Fix #15433 Fix #14373
SevInf
added a commit
to prisma/prisma-engines
that referenced
this issue
Nov 15, 2022
* qe: Identify which request in a batch caused error Adds `batch_request_idx` property to user facing errors. On the client, that would allow us to build correct error message for `$transaction` errors. Ref: prisma/prisma#15433, prisma/prisma#14373
SevInf
added a commit
that referenced
this issue
Nov 15, 2022
Engine PR: prisma/prisma-engines#3384 Uses newly added `batch_request_idx` property of an errors to identify and correctly report error location within a batch. Fix #15433 Fix #14373
SevInf
added a commit
that referenced
this issue
Nov 15, 2022
Engine PR: prisma/prisma-engines#3384 Uses newly added `batch_request_idx` property of an errors to identify and correctly report error location within a batch. Fix #15433 Fix #14373
SevInf
added a commit
that referenced
this issue
Nov 16, 2022
Engine PR: prisma/prisma-engines#3384 Uses newly added `batch_request_idx` property of an errors to identify and correctly report error location within a batch. Fix #15433 Fix #14373
SevInf
added a commit
that referenced
this issue
Nov 16, 2022
Engine PR: prisma/prisma-engines#3384 Uses newly added `batch_request_idx` property of an errors to identify and correctly report error location within a batch. Fix #15433 Fix #14373
SevInf
added a commit
that referenced
this issue
Nov 17, 2022
Engine PR: prisma/prisma-engines#3384 Uses newly added `batch_request_idx` property of an errors to identify and correctly report error location within a batch. Fix #15433 Fix #14373
SevInf
added a commit
that referenced
this issue
Nov 17, 2022
…6240) Engine PR: prisma/prisma-engines#3384 Uses newly added `batch_request_idx` property of an errors to identify and correctly report error location within a batch. Fix #15433 Fix #14373
jkomyno
pushed a commit
that referenced
this issue
Dec 21, 2022
…6240) Engine PR: prisma/prisma-engines#3384 Uses newly added `batch_request_idx` property of an errors to identify and correctly report error location within a batch. Fix #15433 Fix #14373
jkomyno
pushed a commit
that referenced
this issue
Dec 21, 2022
…6240) Engine PR: prisma/prisma-engines#3384 Uses newly added `batch_request_idx` property of an errors to identify and correctly report error location within a batch. Fix #15433 Fix #14373
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
tech/typescript
Issue for tech TypeScript.
topic: $transaction
Related to .$transaction(...) Client API
topic: transaction
Bug description
When multiple update queries are set to the $transaction method and an error occurs in one of them, it is always indicated that the first query in the array of arguments has failed.
How to reproduce
https://github.com/aya-eiya/prisma-tx-error
schema.prisma
main.js
This script will get
is never happen on
prisma.user.updateMany
. the actual error line isprisma.user.update
.this makes investigating difficult and causes confusion. so I think this must be a bug of $trancation.
Expected behavior
It must point out an actual error line.
Prisma information
Environment & setup
node: v14.17.0
OS: macOS 12.4 (21F79)
Kernel: Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:29 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T8101
Prisma Version
The text was updated successfully, but these errors were encountered: