evolution-api icon indicating copy to clipboard operation
evolution-api copied to clipboard

As mensagens não chegam ao Chatwoot / Messages are not reaching Chatwoot

Open JBdesarrollo opened this issue 1 year ago • 6 comments

Criei várias instâncias na API da Evolution. As configuro corretamente, ao que parece, e elas criam automaticamente uma caixa de entrada no Chatwoot. A nova caixa de entrada carrega o histórico de mensagens antigas sem problema e gera o QR code obtendo uma conexão correta. Mas depois de carregar o histórico, não chegam mais mensagens. Todas as mensagens novas chegam ao dispositivo, mas não ao Chatwoot. No entanto, se eu atualizar a instância, o histórico é carregado e minha caixa de entrada se atualiza. Consigo enviar mensagens a partir do Chatwoot, mas não recebo. Quando tento enviar uma mensagem ao Chatwoot, o servidor exibe este log:

I’ve created several instances in the Evolution API. I configure them correctly, apparently, and they automatically create an inbox in Chatwoot. The new inbox loads the message history without issues and generates the QR code, obtaining a proper connection. However, after loading the history, no more messages arrive. All new messages reach the device but not Chatwoot. If I refresh the instance, the history loads again and the inbox gets updated. I can send messages from Chatwoot, but I don't receive any. When I try to send a message to Chatwoot, the server shows this log:

`[Evolution API] [jb-pruebas] v2.2.3 1747239 - Tue May 13 2025 19:15:42 LOG [ChannelStartupService] [string] Update not read messages [email protected] [Evolution API] [jb-pruebas] v2.2.3 1747239 - Tue May 13 2025 19:15:42 LOG [ChannelStartupService] [object]
{ key: { remoteJid: '[email protected]', fromMe: false, id: '3XXXXXXXCB7XXXXC', participant: undefined }, pushName: 'Jhon B', status: 'DELIVERY_ACK', message: { messageContextInfo: MessageContextInfo { deviceListMetadata: [DeviceListMetadata], deviceListMetadataVersion: 2 }, conversation: 'Mensaje de prueba' }, contextInfo: ContextInfo { mentionedJid: [], groupMentions: [], expiration: 0, ephemeralSettingTimestamp: Long { low: 0, high: 0, unsigned: false }, disappearingMode: DisappearingMode { initiator: 0 } }, messageType: 'conversation', messageTimestamp: 1747163742, instanceId: '6cab6fba-3b8e-4a3f-ac63-c9f74769bedd', source: 'unknown' }

[Evolution API] v2.2.3 1747239 - Tue May 13 2025 19:15:42 LOG [WebhookController] [object]
{ local: 'ChannelStartupService.sendData-Webhook', url: 'https://XXXXXXX.com/chatwoot/webhook/jb-pruebas', event: 'messages.upsert', instance: 'jb-pruebas', data: { key: { remoteJid: '[email protected]', fromMe: false, id: '3FXXXXXXXXXXXC', participant: undefined }, pushName: 'Jhon B', status: 'DELIVERY_ACK', message: { messageContextInfo: [MessageContextInfo], conversation: 'againx6' }, contextInfo: ContextInfo { mentionedJid: [], groupMentions: [], expiration: 0, ephemeralSettingTimestamp: [Long], disappearingMode: [DisappearingMode] }, messageType: 'conversation', messageTimestamp: 1747163742, instanceId: '6XXXXXXXXXXXXdd', source: 'unknown' }, destination: 'https://XXXXXXX.com/chatwoot/webhook/jb-pruebas', date_time: '2025-05-13T19:15:42.961Z', sender: '[email protected]', server_url: 'https://XXXXXXXX.com', apikey: '92XXXXXXXXXXXXXXE0' }

[Evolution API] v2.2.3 1747239 - Tue May 13 2025 19:15:42 VERBOSE [CacheEngine] [string] RedisCache initialized for ChatwootService [Evolution API] v2.2.3 1747239 - Tue May 13 2025 19:15:42 VERBOSE [CacheService] [string] cacheservice created using cache engine: RedisCache [Evolution API] v2.2.3 1747239 - Tue May 13 2025 19:15:43 LOG [WebhookController] [object]
{ local: 'ChannelStartupService.sendData-Webhook', url: 'https://XXXXXXXXX.com/chatwoot/webhook/jb-pruebas', event: 'contacts.update', instance: 'jb-pruebas', data: { remoteJid: '[email protected]', pushName: 'Jhon B', profilePicUrl: 'https://pps.whatsapp.net/v/t61.24694-24/491840695_9701849589884668_7069655256502250851_n.jpg?ccb=11-4&oh=01_Q5Aa1gHZTRX-r0bBR0Jp8YyXEtuqYsoVoz481_CZ-UNunzahow&oe=6830AB8E&_nc_sid=5e03e0&_nc_cat=100', instanceId: '6cab6fba-3b8e-4a3f-ac63-c9f74769bedd' }, destination: 'https://XXXXXXXXXXX.com/chatwoot/webhook/jb-pruebas', date_time: '2025-05-13T19:15:43.018Z', sender: '[email protected]', server_url: 'https://qr2.makinelab.com', apikey: '92DXXXXXXXXXXXXXX0' }

[Evolution API] v2.2.3 1747239 - Tue May 13 2025 19:15:43 VERBOSE [CacheEngine] [string] RedisCache initialized for ChatwootService [Evolution API] v2.2.3 1747239 - Tue May 13 2025 19:15:43 VERBOSE [CacheService] [string] cacheservice created using cache engine: RedisCache [Evolution API] v2.2.3 1747239 - Tue May 13 2025 19:17:16 LOG [WebhookController] [object]
{ local: 'ChannelStartupService.sendData-Webhook', url: 'https://XXXXXXXX.com/chatwoot/webhook/jb-pruebas', event: 'presence.update', instance: 'jb-pruebas', data: { id: '[email protected]', presences: { '[email protected]': [Object] } }, destination: 'https://XXXXXXXXXX.com/chatwoot/webhook/jb-pruebas', date_time: '2025-05-13T19:17:16.005Z', sender: '[email protected]', server_url: 'https://qr2.makinelab.com', apikey: '92DXXXXXXXXX0' }

[Evolution API] v2.2.3 1747239 - Tue May 13 2025 19:17:16 VERBOSE [CacheEngine] [string] RedisCache initialized for ChatwootService [Evolution API] v2.2.3 1747239 - Tue May 13 2025 19:17:16 VERBOSE [CacheService] [string] cacheservice created using cache engine: RedisCache `

JBdesarrollo avatar May 13 '25 19:05 JBdesarrollo

Também não estou recebendo mensagem no chatwoot.. não faço ideia do problema.

matheusvalexd avatar May 15 '25 21:05 matheusvalexd

Eu tive um problema parecido. Percebi que estava chegando na Evolution, mas não chegava no ChatWoot por causa dessa opção: Image

Deixando ela desligada, voltou a funcionar.

Lucasbrunoferreira avatar May 16 '25 00:05 Lucasbrunoferreira

Eu tive um problema parecido. Percebi que estava chegando na Evolution, mas não chegava no ChatWoot por causa dessa opção: Image

Deixando ela desligada, voltou a funcionar.

Aqui não mudou nada, continua ruim..

matheusvalexd avatar May 16 '25 18:05 matheusvalexd

Eu tive um problema parecido. Percebi que estava chegando na Evolution, mas não chegava no ChatWoot por causa dessa opção: Image

Deixando ela desligada, voltou a funcionar.

Ei, irmão, pensei que sua solução não estava funcionando porque o meu já estava desativado, mas eu ativei, salvei, desativei novamente, salvei e, só para garantir, reiniciei. Com isso o problema foi resolvido. Muito obrigado

JBdesarrollo avatar May 19 '25 20:05 JBdesarrollo

o ideal é nunca usar esse pending, ja que ele até atrapalha pra o usuario achar no chatwoot, pq tem que mudar o filtro. Mas enfim, como ja responderam acima a maneira de resolver e o autor conseguiu resolver o problema dele, vou fechar a issue. @matheusvalexd veja seu URL, token e accountID se estão corretos, isso tambem pode influenciar em não conseguir o evo conversar com chatwoot. e tente refazer o que o @JBdesarrollo fez. caso contrario o melhor é instalar o evo e chatwoot do zero.

dpaes avatar May 27 '25 11:05 dpaes

Olá pessoal, tudo bem? Eu estou com o mesmo problema só que com typebot alguem tem ideia? [Evolution API] [xxxxxxxxxx] v2.2.3 1 - Tue Jan 20 2026 03:00:38 LOG [ChannelStartupService] [string] Update not read messages xxxxxxxx@lid [Evolution API] [xxxxxxx] v2.2.3 1 - Tue Jan 20 2026 03:00:38 LOG [ChannelStartupService] [object] { key: { remoteJid: 'xxxx@lid', fromMe: false, id: 'xxxxx', participant: undefined }, pushName: '💀', status: 'DELIVERY_ACK', message: { conversation: 'dad', messageContextInfo: MessageContextInfo { deviceListMetadata: [DeviceListMetadata], deviceListMetadataVersion: 2, messageSecret: [Uint8Array] } }, contextInfo: undefined, messageType: 'conversation', messageTimestamp: xxxxx, instanceId: 'xxx-xx-xxxx-xxxx-xxxxxxxxx', source: 'web' }

kayoh89 avatar Jan 20 '26 06:01 kayoh89