You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
I facing some messages does not store into database which get the error from the logs as following:
{"level":50,"time":1677119196345,"pid":14721,"hostname":"Edwards-MacBook-Pro.local","err":{"type":"PrismaClientKnownRequestError","message":"\nInvalid
model.create()
invocation in\n/Users/edwardtan/Sites/localhost/whatsapp/whatsapp_service/node_modules/@ookamiiixd/baileys-store/dist/handlers/message.js:79:27\n\n 76 },\n 77 },\n 78 }),\n→ 79 model.create(\nUnique constraint failed on the constraint:PRIMARY
","stack":"Error: \nInvalidmodel.create()
invocation in\n/Users/edwardtan/Sites/localhost/whatsapp/whatsapp_service/node_modules/@ookamiiixd/baileys-store/dist/handlers/message.js:79:27\n\n 76 },\n 77 },\n 78 }),\n→ 79 model.create(\nUnique constraint failed on the constraint:PRIMARY
\n at RequestHandler.handleRequestError (/Users/edwardtan/Sites/localhost/whatsapp/whatsapp_service/node_modules/@prisma/client/runtime/index.js:34869:13)\n at RequestHandler.handleAndLogRequestError (/Users/edwardtan/Sites/localhost/whatsapp/whatsapp_service/node_modules/@prisma/client/runtime/index.js:34841:12)\n at RequestHandler.request (/Users/edwardtan/Sites/localhost/whatsapp/whatsapp_service/node_modules/@prisma/client/runtime/index.js:34836:12)\n at async PrismaClient._request (/Users/edwardtan/Sites/localhost/whatsapp/whatsapp_service/node_modules/@prisma/client/runtime/index.js:35926:16)\n at async Promise.all (index 1)\n at async EventEmitter.update (/Users/edwardtan/Sites/localhost/whatsapp/whatsapp_service/node_modules/@ookamiiixd/baileys-store/dist/handlers/message.js:68:17)","code":"P2002","clientVersion":"4.7.1","meta":{"target":"PRIMARY"}},"msg":"An error occured during message update edward"}The text was updated successfully, but these errors were encountered: