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
Yes, I have searched for similar issues on GitHub and found none.
What did you do?
Ao chamar o endpoint {{baseUrl}}/label/handleLabel/{{instance}} obtenho erros!
What did you expect?
Deveria ser possível adicionar o label e retornar com sucesso.
What did you observe instead of what you expected?
Esse e o erro retornado.
{
"status": 400,
"error": "Bad Request",
"response": {
"message": [
"Unable to add label to chat",
"PrismaClientKnownRequestError: \nInvalid `prisma.$executeRawUnsafe()` invocation:\n\n\nRaw query failed. Code: `42P10`. Message: `ERROR: there is no unique or exclusion constraint matching the ON CONFLICT specification`"
]
}
}
Screenshots/Videos
No response
Which version of the API are you using?
2.2.3
What is your environment?
Linux
Other environment specifications
No response
If applicable, paste the log output
No response
Additional Notes
ao analisar o código percebi que o problema e que no schema prisma do postgresql não temos um index único usando instanceId, remoteJid porem no schema do mysql ele existe, com isso adicionei esse index.
@@unique([instanceId, remoteJid])
The text was updated successfully, but these errors were encountered:
Welcome!
What did you do?
Ao chamar o endpoint
{{baseUrl}}/label/handleLabel/{{instance}}
obtenho erros!What did you expect?
Deveria ser possível adicionar o label e retornar com sucesso.
What did you observe instead of what you expected?
Esse e o erro retornado.
Screenshots/Videos
No response
Which version of the API are you using?
2.2.3
What is your environment?
Linux
Other environment specifications
No response
If applicable, paste the log output
No response
Additional Notes
ao analisar o código percebi que o problema e que no schema prisma do postgresql não temos um index único usando
instanceId, remoteJid
porem no schema do mysql ele existe, com isso adicionei esse index.The text was updated successfully, but these errors were encountered: