-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
Welcome!
- Yes, I have searched for similar issues on GitHub and found none.
What did you do?
- Audio: Doesn't work when sent via Chatwoot.
- Image/Video: Doesn't work via Chatwoot nor via Postman.
✅ Tested in multiple installations and different servers.
Tested with many instalations in many servers!
Audio Error LOG and Observations:
Workaround
I'm using a combination of:
- Evolution Audio Converter
- N8N for automation
Flow:
A Chatwoot dashboard app triggers audio reprocessing.
The .oga audio is converted to .ogg.
The .ogg is sent back via the API.
(The .mp3 generated by the evolution conversor also is failing to send, even using Cloud Reference! Just the .ogg version works).
- In previous one version, I had to use the official WhatsApp API to send the audio converted to ogg. In this v2.3.0 at least this converted audio version is working. But in short, Evo using Cloud API just does not works with Chatwoot to send audio (or media, as shown below).
AUDIO LOG OUTPUT (Sending via chatwoot):
[Evolution API] [07 - XPTO - API OFICIAL] v2.3.0 212 - Tue May 20 2025 00:50:54 LOG [ChannelStartupService] [object]
{
key: {
fromMe: true,
id: 'wamid.HBgNNTUxMTkzNzQ3NDcwMxUCABEYEjU0MjdGQUZCOTBCRjc2NUQ2RQA=',
remoteJid: '5511...4703@s.whatsapp.net'
},
message: {
audioMessage: {
fileName: '5511...74703-1747713053503.mp3',
mediaType: 'audio',
audio: 'https://app.xpto.cloud/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdHc3IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ffb7a680ebc3da8843441ef033fc2b051c1fec14/1747713039227.oga';,
id: 'https://app.xpto.cloud/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBdHc3IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ffb7a680ebc3da8843441ef033fc2b051c1fec14/1747713039227.oga';,
type: 'link',
mimetype: 'audio/ogg'
}
},
messageType: 'audioMessage',
messageTimestamp: 1747713054,
instanceId: 'bb0081fa-cadd-4930-a3ab-4476e6a96e99',
webhookUrl: undefined,
status: 'PENDING',
source: 'unknown'
}
After pending status, here goes the error (that just jumps on the screen apparently random and intermittently but at high frequency):
[Evolution API] v2.3.0 212 - Tue May 20 2025 00:50:54 ERROR [unhandledRejection] [object]
{
origin: Promise {
<rejected> { status: 400, error: 'Bad Request', message: [Array] }
},
stderr: 2
}
[Evolution API] v2.3.0 212 - Tue May 20 2025 00:50:54 ERROR [unhandledRejection] [object]
{
status: 400,
error: 'Bad Request',
message: [ 'Method not available on WhatsApp Business API' ]
}
- In version 2.2.3, Chatwoot showed: "🚨 Não foi possível enviar a mensagem. Verifique sua conexão."
- In 2.3.0, no error message appears in Chatwoot when audio fails.
Image and video Error LOGS:
- Chatwoot fails to send any image or video (JPG, PNG, MP4 ...).
- Failure also happens when trying via Postman.
Error LOG (Sending via Chatwoot):
[Evolution API] [Emanuel - Api Oficial] v2.3.0 212 - Tue May 20 2025 03:07:18 ERROR [ChannelStartupService] [object]
TypeError: Cannot read properties of undefined (reading '0')
at ys.sendMessageWithTyping (/evolution/dist/main.js:222:479)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ys.mediaMessage (/evolution/dist/main.js:222:2745)
at async Ne.sendAttachment (/evolution/dist/main.js:82:10593)
at async Ne.receiveWebhook (/evolution/dist/main.js:84:232)
at async Ai.dataValidate (/evolution/dist/main.js:295:67396)
at async /evolution/dist/main.js:295:108103
[Evolution API] v2.3.0 212 - Tue May 20 2025 03:07:18 ERROR [ChatwootService] [object]
{
status: 400,
error: 'Bad Request',
message: [ "TypeError: Cannot read properties of undefined (reading '0')" ]
}
Whether jpeg, png, mp4, all them give this same error!
Error LOG Sending via Postman (urls withou extension (e.g. .png) like Amazon S3 URLs):
{
"status": 400,
"error": "Bad Request",
"response": {
"message": [
"TypeError: e.mimetype?.startsWith is not a function"
]
}
}
Sending via Postman using url with extension:
{
"status": 400,
"error": "Bad Request",
"response": {
"message": [
"TypeError: Cannot read properties of undefined (reading '0')"
]
}
}
I keep dreaming of the day when Evolution will work flawlessly with the Cloud API...
Honestly, it's frustrating and sometimes makes me want to give up entirely — but since it's free and offers great features integrated with Chatwoot... We carry on with hope.
- Not to mention the message duplication behavior in Chatwoot, which continues to happen, but I haven't had time to observe a pattern yet.
What did you expect?
Send the things.
What did you observe instead of what you expected?
Workaround.
Screenshots/Videos
No response
Which version of the API are you using?
V2.3.0
What is your environment?
Windows
Other environment specifications
No response
If applicable, paste the log output
No response
Additional Notes
No response