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

whatsapp cloud does not send audio

Open Matheus-Matta opened this issue 10 months ago • 7 comments

Welcome!

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

What did you do?

My WhatsApp Cloud does not send audio. I used Chatwoot for integration and when the audio is through the official API, it does not send it.

What did you expect?

I expected that sending the audio through chatwoot using the evolution api via the meta cloud api would work

What did you observe instead of what you expected?

It doesn't send the audio and gives an error in chatwoot and also in the logs

Screenshots/Videos

Image

Which version of the API are you using?

v2.2.3

What is your environment?

Linux

Other environment specifications

self hosted

If applicable, paste the log output

[Evolution API] v2.2.3 350 - Fri Mar 07 2025 14:51:27 VERBOSE [CacheEngine] [string] RedisCache initialized for Re

[Evolution API] v2.2.3 350 - Fri Mar 07 2025 14:51:27 VERBOSE [CacheService] [string] cacheservice created using cache engine: Gt

[Evolution API] [whatsapp-cloud] v2.2.3 350 - Fri Mar 07 2025 14:51:28 ERROR [ChannelStartupService] [object]

TypeError: Cannot read properties of undefined (reading '0')

at ls.sendMessageWithTyping (/evolution/dist/main.js:221:479)

at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

at async ls.audioWhatsapp (/evolution/dist/main.js:221:3468)

at async Re.sendAttachment (/evolution/dist/main.js:82:10408)

at async Re.receiveWebhook (/evolution/dist/main.js:84:232)

at async fi.dataValidate (/evolution/dist/main.js:286:62716)

at async /evolution/dist/main.js:286:99657 

[Evolution API] v2.2.3 350 - Fri Mar 07 2025 14:51:28 ERROR [ChatwootService] [object]

{

status: 400,

error: 'Bad Request',

message: [ "TypeError: Cannot read properties of undefined (reading '0')" ]

}

Additional Notes

No response

Matheus-Matta avatar Mar 07 '25 18:03 Matheus-Matta

Mesmo problema, conseguiu resolver?

poggioni-dot avatar Mar 21 '25 13:03 poggioni-dot

Preciso desta solução também !!!

joaomachado-pg avatar Mar 28 '25 16:03 joaomachado-pg

Eu vi alguns issues abertos sobre isso, mas ninguém tem a solução. Percebi que se usar a API na mão vai, mas pela integração não vai o audio. Outro problema são os anexos. Todos chegam corrompidos. Evo v2.2.3 + Chatwoot 4.0.3 (mas já testei algumas combinações diferentes)

ViliNeto avatar Apr 03 '25 05:04 ViliNeto

o jeito vai ser usar a api do cloud mesmo, e integrar direto no chatwoot sem evolution

Matheus-Matta avatar Apr 03 '25 13:04 Matheus-Matta

O mesmo problema por aqui, uma merda isso

MarecoX avatar Apr 09 '25 21:04 MarecoX

O mesmo aqui! Nem imagem tá enviando! E ainda tô no Chatwoot 3! Chatwoot-N 3.14.2

[Evolution API] v2.2.3 184 - Thu May 08 2025 23:20:33 ERROR [unhandledRejection] [object] { origin: Promise { <rejected> { status: 400, error: 'Bad Request', message: [Array] } }, stderr: 2 } all values are hidden [Evolution API] v2.2.3 184 - Thu May 08 2025 23:20:33 ERROR [unhandledRejection] [object] { status: 400, error: 'Bad Request', message: [ 'Method not available on WhatsApp Business API' ] }

TheEmanuelSampaio avatar May 09 '25 02:05 TheEmanuelSampaio

Não manda nada!

ViliNeto avatar May 09 '25 21:05 ViliNeto