Skip to content

Chatwoot integration: message wont create new conversation once contact is deleted #1718

Open
@fokc1509

Description

@fokc1509

Welcome!

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

What did you do?

Once a contact is deleted if that contact send a new wapp message the conversation wont be recreated on chatwoot acting more like a block.

If you go to evoapi instance and then to chatwoot integration and disable/enable the integration (sqs) and try to send a message again it will work

What did you expect?

When a contact is deleted the conversation should be deleted as long with contact details. a new message from the contact was to recreate the contact without details and create a new conversation

What did you observe instead of what you expected?

if the contact is deleted from chatwoot base a new message from the contact was to create a new conversation

Screenshots/Videos

No response

Which version of the API are you using?

2.3.0 evo api 4.3 cw

What is your environment?

Ubuntu/Docker

Other environment specifications

No response

If applicable, paste the log output

2025-07-14T01:27:55.817725499Z [Evolution API] v2.3.0 212 - Sun Jul 13 2025 22:27:55 ERROR [ChatwootService] [object]
2025-07-14T01:27:55.823179661Z ApiError: Conversation not found
2025-07-14T01:27:55.823210227Z at catchErrorCodes (/evolution/node_modules/@figuro/chatwoot-sdk/dist/core/request.js:226:15)
2025-07-14T01:27:55.823219434Z at /evolution/node_modules/@figuro/chatwoot-sdk/dist/core/request.js:257:17
2025-07-14T01:27:55.823227283Z at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
2025-07-14T01:27:55.823234588Z url: 'http://xxxx.online/api/v1/accounts/1/conversations/3/messages',
2025-07-14T01:27:55.823260819Z status: 404,
2025-07-14T01:27:55.823268326Z statusText: 'Not Found',
2025-07-14T01:27:55.823274006Z body: { error: 'Resource could not be found' },
2025-07-14T01:27:55.823279706Z request: {
2025-07-14T01:27:55.823285414Z method: 'POST',
2025-07-14T01:27:55.823290890Z url: '/api/v1/accounts/{account_id}/conversations/{conversation_id}/messages',
2025-07-14T01:27:55.823296725Z path: { account_id: '1', conversation_id: 3 },
2025-07-14T01:27:55.823302257Z formData: {
2025-07-14T01:27:55.823307828Z content: 'Ola',
2025-07-14T01:27:55.823313303Z message_type: 'incoming',
2025-07-14T01:27:55.823376961Z private: false,
2025-07-14T01:27:55.823387827Z source_id: 'WAID:3ABA075990F40BA92FAE',
2025-07-14T01:27:55.823393576Z content_attributes: [Object],
2025-07-14T01:27:55.823399334Z source_reply_id: null,
2025-07-14T01:27:55.823405162Z attachments: []
2025-07-14T01:27:55.823410862Z },
2025-07-14T01:27:55.823416788Z errors: { '403': 'Access denied', '404': 'Conversation not found' }
2025-07-14T01:27:55.823422467Z }
2025-07-14T01:27:55.823428126Z }
2025-07-14T01:27:55.823433727Z

Additional Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions