ERROR: there is no unique or exclusion constraint matching the ON CONFLICT specification
Welcome!
- [x] 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 {
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
Mesmo problema aqui, caso tenha resolvido nos compartilhe aqui !
Mesmo erro aqui (porém docker na versão 2.2.2). Logo após esse aparecem dois outros erros, não sei se tem relação uma com a outra, mas segue o log..
Error in batch request 27: Error occurred during query execution: ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(PostgresError { code: "40P01", message: "deadlock detected", severity: "ERROR", detail: Some("Process 4714 waits for ShareLock on transaction 1035616; blocked by process 4694.\nProcess 4694 waits for ShareLock on transaction 1035618; blocked by process 4714."), column: None, hint: Some("See server log for query details.") }), transient: false }) at Bn.handleRequestError (/evolution/node_modules/@prisma/client/runtime/library.js:121:7553) 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) { clientVersion: '6.3.0' }
[Evolution API] [45630348000109] v2.2.2 171 - Thu Apr 24 2025 15:00:59 ERROR [ChannelStartupService] [string] Error:
Invalid this.cache.delete() invocation in
/evolution/dist/main.js:230:6828
[Evolution API] v2.2.3 171 - Fri May 30 2025 15:45:44 ERROR [unhandledRejection] [object]
api-1 | PrismaClientKnownRequestError:
api-1 | Invalid prisma.$executeRawUnsafe() invocation:
api-1 |
api-1 |
api-1 | Raw query failed. Code: 42P10. Message: ERROR: there is no unique or exclusion constraint matching the ON CONFLICT specification
api-1 | at Bn.handleRequestError (/evolution/node_modules/@prisma/client/runtime/library.js:121:7362)
api-1 | at Bn.handleAndLogRequestError (/evolution/node_modules/@prisma/client/runtime/library.js:121:6686)
api-1 | at Bn.request (/evolution/node_modules/@prisma/client/runtime/library.js:121:6393)
api-1 | at async l (/evolution/node_modules/@prisma/client/runtime/library.js:130:9645)
api-1 | at async Rs.addLabel (/evolution/dist/main.js:253:3945)
api-1 | at async labels.association (/evolution/dist/main.js:230:31695) {
api-1 | code: 'P2010',
api-1 | clientVersion: '6.3.0',
api-1 | meta: {
api-1 | code: '42P10',
api-1 | message: 'ERROR: there is no unique or exclusion constraint matching the ON CONFLICT specification'
api-1 | }
api-1 | }
api-1 |
alguma solução para esse erro?
reinstalei do zero, ou ignorar mesmo...
Evo 2.3 ainda com esta erro