Welcome!
What did you do?
I tried to send a SendButtons request connected to the Official WhatsApp API. The request contained a button of type "url" instead of "reply".
{
"number": "{{ remoteJid }}",
"title": "Title Button",
"description": "Description Button",
"footer": "Footer Button",
"buttons": [
{
"type": "url",
"displayText": "Google",
"url": "https://google.com"
}
]
}
What did you expect?
I expected it to return a message with a button that redirects to the selected link
What did you observe instead of what you expected?
The API returned a 400 Bad Request error with the following message:
{
"status": 400,
"error": "Bad Request",
"response": {
"message": [
"TypeError: Cannot read properties of undefined (reading '0')"
]
}
}
Screenshots/Videos
No response
Which version of the API are you using?
Version Evolution API: v2.2.3
What is your environment?
Linux
Other environment specifications
No response
If applicable, paste the log output
[Evolution API] [InstanceName] v2.2.3 198 - Mon Feb 17 2025 14:54: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.buttonMessage (/evolution/dist/main.js:221:3908)
at async ss.sendButtons (/evolution/dist/main.js:2:23571)
at async fn.dataValidate (/evolution/dist/main.js:286:62716)
at async /evolution/dist/main.js:286:128206
Additional Notes
No response
Welcome!
What did you do?
I tried to send a SendButtons request connected to the Official WhatsApp API. The request contained a button of type "url" instead of "reply".
What did you expect?
I expected it to return a message with a button that redirects to the selected link
What did you observe instead of what you expected?
The API returned a 400 Bad Request error with the following message:
Screenshots/Videos
No response
Which version of the API are you using?
Version Evolution API: v2.2.3
What is your environment?
Linux
Other environment specifications
No response
If applicable, paste the log output
[Evolution API] [InstanceName] v2.2.3 198 - Mon Feb 17 2025 14:54: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.buttonMessage (/evolution/dist/main.js:221:3908)
at async ss.sendButtons (/evolution/dist/main.js:2:23571)
at async fn.dataValidate (/evolution/dist/main.js:286:62716)
at async /evolution/dist/main.js:286:128206
Additional Notes
No response