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

[PT] RabbitMQ Global BUG - Necessário ativação dupla/tripla pra enviar 1 evento para processar.

Open luccamrofc opened this issue 8 months ago • 1 comments

Welcome!

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

What did you do?

Minha infra está mais que o suficiente para rodar as aplicações, com sobra.

No entanto, ao conectar o RabbitMQ Global na evolution, mesmo com apenas 2 ou 3 instâncias, que mal recebem mensagens, a evolution não envia os eventos das mensagens para o Rabbit e, como eu utilizo fluxo dependentes de Trigger do Rabbit, a aplicação trava.

What did you expect?

O usuário deveria enviar uma mensagem e imediatamente o evento com o payload estar presente no RabbitMQ.

What did you observe instead of what you expected?

São necessárias 2/3 ativações de uma mensagem para que a evolution envie para o Rabbit, deixando claro que a infra está em swarm e se comunicando normalmente.

Screenshots/Videos

Image

Which version of the API are you using?

2.2.3

What is your environment?

Docker

Other environment specifications

8CPU - 16 GB RAM - Debian 12 - Docker Swarm

If applicable, paste the log output

No response

Additional Notes

{ local: 'p.sendData-RabbitMQ-Global', event: 'messages.upsert', instance: 'hypeshape-3c0f61ae-087d-45a0-a30a-bd9bc9a7ca67', { key: { remoteJid: '[email protected]', fromMe: false, id: '3A45863BF1766A10B17F', participant: undefined }, pushName: 'Lucca', status: 'DELIVERY_ACK', message: { conversation: 'quero pra amanha, ás 14', messageContextInfo: [MessageContextInfo] }, contextInfo: undefined, messageType: 'conversation', messageTimestamp: 1746122233, instanceId: 'e7a8fda0-eba6-4a92-8778-41da6d63d5ba', source: 'ios' }, server_url: 'https://apievov2.hypebot.com.br', date_time: '2025-05-01T14:57:13.583Z', sender: '[email protected]', apikey: 'ff299627-27b8-45fa-94f4-95ac4f67b107' } [Evolution API] [hypeshape-3c0f61ae-087d-45a0-a30a-bd9bc9a7ca67] v2.2.3 170 - Thu May 01 2025 14:57:13 VERBOSE [ChannelStartupService] [string] Sending message to [email protected] [Evolution API] [hypeshape-3c0f61ae-087d-45a0-a30a-bd9bc9a7ca67] v2.2.3 170 - Thu May 01 2025 14:57:14 LOG [ChannelStartupService] [string] Update messages [ { "key": { "remoteJid": "[email protected]", "id": "3EB0B9ADB5C58F236C30B988B1238CC0E4E8E3FA", "fromMe": true }, "update": { "status": 3 } } ] [Evolution API] [hypeshape-3c0f61ae-087d-45a0-a30a-bd9bc9a7ca67] v2.2.3 170 - Thu May 01 2025 14:57:14 LOG [ChannelStartupService] [object]
{ key: MessageKey { remoteJid: '[email protected]', fromMe: true, id: '3EB0108047FD94CA91DC5DED99058AC34621AFAA' }, pushName: '', status: 'PENDING', message: { conversation: 'Você prefere atendimento presencial ou online para essa consulta?' }, contextInfo: null, messageType: 'conversation', messageTimestamp: 1746122233, instanceId: 'e7a8fda0-eba6-4a92-8778-41da6d63d5ba', source: 'unknown' } [Evolution API] [hypeshape-3c0f61ae-087d-45a0-a30a-bd9bc9a7ca67] v2.2.3 170 - Thu May 01 2025 14:57:14 LOG [ChannelStartupService] [string] Update messages [ { "key": { "remoteJid": "556295171551:[email protected]", "id": "3EB0108047FD94CA91DC5DED99058AC34621AFAA", "fromMe": true }, "update": { "status": 3 } } ] [Evolution API] [hypeshape-3c0f61ae-087d-45a0-a30a-bd9bc9a7ca67] v2.2.3 170 - Thu May 01 2025 14:57:14 LOG [ChannelStartupService] [string] Update messages [ { "key": { "remoteJid": "556295171551:[email protected]", "id": "3EB0108047FD94CA91DC5DED99058AC34621AFAA", "fromMe": true }, "update": { "status": 4 } } ] [Evolution API] v2.2.3 170 - Thu May 01 2025 14:57:15 ERROR [Validate] [object]
[ 'text is not of a type(s) string' ] [Evolution API] [hypeshape-3c0f61ae-087d-45a0-a30a-bd9bc9a7ca67] v2.2.3 170 - Thu May 01 2025 14:57:15 LOG [ChannelStartupService] [string] Update messages [ { "key": { "remoteJid": "[email protected]", "id": "3EB0108047FD94CA91DC5DED99058AC34621AFAA", "fromMe": true }, "update": { "status": 3 } } ]

luccamrofc avatar May 01 '25 17:05 luccamrofc

Eu uso RabbitMQ no meu projeto e não tenho esse problema, "2/3 ativações de uma mensagem " poderia explicar melhor?

Deyvi-dev avatar May 03 '25 21:05 Deyvi-dev