Prisma Transaction Already closed #22188
Unanswered
Sheyereyesh
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Hi @Sheyereyesh 👋 Thank you for raising this question. Can you increase the timeout for your transaction? for example: await prisma.$transaction(
async (tx) => {
// Code running in a transaction...
},
{
maxWait: 5000, // default: 2000
timeout: 10000, // default: 5000
isolationLevel: Prisma.TransactionIsolationLevel.Serializable, // optional, default defined by database configuration
}
) You may also want to take a look at this closed issue to see how other users resolved the same error. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
using postgresql & prisma version 4.14.0
this function updates the order column with the given value and update other rows order
I got this error
Transaction API error: Transaction already closed: Could not perform operation.
it works but throws this error periodically
How to reproduce (optional)
Beta Was this translation helpful? Give feedback.
All reactions