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

[prisma 5] investigate Unique constraint failed #129

Open
masterkain opened this issue Jul 15, 2023 · 0 comments
Open

[prisma 5] investigate Unique constraint failed #129

masterkain opened this issue Jul 15, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@masterkain
Copy link
Member

masterkain commented Jul 15, 2023

very rarely this might happen during heavy traffic:

- error PrismaClientKnownRequestError: 
Invalid `prisma.occurrence.upsert()` invocation:


Unique constraint failed on the fields: (`notice_id`,`message`)
    at zr.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:122:8308)
    at zr.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:122:7697)
    at zr.request (/app/node_modules/@prisma/client/runtime/library.js:122:7307)
    at async processError (/app/.next/server/app/api/v3/notices/route.js:150:9)
    at async POST (/app/.next/server/app/api/v3/notices/route.js:279:9)
    at async /app/.next/server/chunks/6255.js:3682:37 {
  code: 'P2002',
  clientVersion: '5.0.0',
  meta: { target: [ 'notice_id', 'message' ] }
}
@masterkain masterkain added the bug Something isn't working label Jul 15, 2023
@masterkain masterkain self-assigned this Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant