TypeError: Cannot read properties of undefined (reading '0')
Welcome!
- [x] Yes, I have searched for similar issues on GitHub and found none.
What did you do?
Usando Whatsapp CLOUD API: Quando o Dify(1.2.0 e 1.3.0 testados) recebe a mensagem corretamente e tenta responder, este erro ocorre no evolution:
[Evolution API] [xxx] v2.2.3 212 - Fri Apr 25 2025 13:27:51 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.textMessage (/evolution/dist/main.js:221:1352) at async ot.sendMessageWhatsApp (/evolution/dist/main.js:147:427) at async ot.sendMessageToBot (/evolution/dist/main.js:142:2168) at async ot.initNewSession (/evolution/dist/main.js:147:674) at async ot.processDify (/evolution/dist/main.js:147:1154) at async Ns.emit (/evolution/dist/main.js:278:15259) at async ce.emit (/evolution/dist/main.js:277:6738) at async ls.messageHandle (/evolution/dist/main.js:216:4155)
[Evolution API] v2.2.3 212 - Fri Apr 25 2025 13:27:51 ERROR [DifyService] [object] { status: 400, error: 'Bad Request', message: [ "TypeError: Cannot read properties of undefined (reading '0')" ] }
What did you expect?
Receber a mensagem no whatsapp, vinda do dify, via evolution
What did you observe instead of what you expected?
O evolution retorna erro
Screenshots/Videos
No response
Which version of the API are you using?
2.2.3
What is your environment?
Docker
Other environment specifications
No response
If applicable, paste the log output
No response
Additional Notes
No response
Resolvido. Era o token temporário do meta expirado.