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

ERROR: there is no unique or exclusion constraint matching the ON CONFLICT specification #1284

Open
1 task done
pcarvalhor opened this issue Mar 5, 2025 · 1 comment
Open
1 task done
Labels
bug Something isn't working

Comments

@pcarvalhor
Copy link

Welcome!

  • Yes, I have searched for similar issues on GitHub and found none.

What did you do?

Evolution API] v2.2.3 162 - Wed Mar 05 2025 00:12:58 ERROR [unhandledRejection] [object]
PrismaClientKnownRequestError:
Invalid prisma.$executeRawUnsafe() invocation:

Raw query failed. Code: 42P10. Message: ERROR: there is no unique or exclusion constraint matching the ON CONFLICT specification
at Bn.handleRequestError (/evolution/node_modules/@prisma/client/runtime/library.js:121:7362)
at Bn.handleAndLogRequestError (/evolution/node_modules/@prisma/client/runtime/library.js:121:6686)
at Bn.request (/evolution/node_modules/@prisma/client/runtime/library.js:121:6393)
at async l (/evolution/node_modules/@prisma/client/runtime/library.js:130:9645)
at async Rs.addLabel (/evolution/dist/main.js:253:3945)
at async labels.association (/evolution/dist/main.js:230:31695) {
code: 'P2010',
clientVersion: '6.3.0',
meta: {
code: '42P10',
message: 'ERROR: there is no unique or exclusion constraint matching the ON CONFLICT specification'
}
}

recv 781 chats, 781 contacts, 1000 msgs (is latest: true, progress: 100%), type: 0
[Evolution API] [pedroromeiro] v2.2.3 162 - Wed Mar 05 2025 00:13:00 INFO [ChannelStartupService] [string] labels association - [email protected] (add-label_jid): 6
[Evolution API] v2.2.3 162 - Wed Mar 05 2025 00:13:00 ERROR [unhandledRejection] [object]
{
origin: Promise {
PrismaClientKnownRequestError:
Invalid prisma.$executeRawUnsafe() invocation:

Raw query failed. Code: `42P10`. Message: `ERROR: there is no unique or exclusion constraint matching the ON CONFLICT specification`
    at Bn.handleRequestError (/evolution/node_modules/@prisma/client/runtime/library.js:121:7362)
    at Bn.handleAndLogRequestError (/evolution/node_modules/@prisma/client/runtime/library.js:121:6686)
    at Bn.request (/evolution/node_modules/@prisma/client/runtime/library.js:121:6393)
    at async l (/evolution/node_modules/@prisma/client/runtime/library.js:130:9645)
    at async Rs.addLabel (/evolution/dist/main.js:253:3945)
    at async labels.association (/evolution/dist/main.js:230:31695) {
  code: 'P2010',
  clientVersion: '6.3.0',
  meta: [Object]
}

},
stderr: 2
}

[Evolution API] v2.2.3 162 - Wed Mar 05 2025 00:13:00 ERROR [unhandledRejection] [object]
PrismaClientKnownRequestError:
Invalid prisma.$executeRawUnsafe() invocation:

Raw query failed. Code: 42P10. Message: ERROR: there is no unique or exclusion constraint matching the ON CONFLICT specification
at Bn.handleRequestError (/evolution/node_modules/@prisma/client/runtime/library.js:121:7362)
at Bn.handleAndLogRequestError (/evolution/node_modules/@prisma/client/runtime/library.js:121:6686)
at Bn.request (/evolution/node_modules/@prisma/client/runtime/library.js:121:6393)
at async l (/evolution/node_modules/@prisma/client/runtime/library.js:130:9645)
at async Rs.addLabel (/evolution/dist/main.js:253:3945)
at async labels.association (/evolution/dist/main.js:230:31695) {
code: 'P2010',
clientVersion: '6.3.0',
meta: {
code: '42P10',
message: 'ERROR: there is no unique or exclusion constraint matching the ON CONFLICT specification'
}
}

What did you expect?

Access the created instances

What did you observe instead of what you expected?

I can't access my instances

Screenshots/Videos

No response

Which version of the API are you using?

Latest

What is your environment?

Docker

Other environment specifications

No response

If applicable, paste the log output

No response

Additional Notes

No response

@pcarvalhor pcarvalhor added the bug Something isn't working label Mar 5, 2025
@zxtheuxz
Copy link

zxtheuxz commented Mar 8, 2025

Mesmo problema aqui, caso tenha resolvido nos compartilhe aqui !

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

2 participants