botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
66 stars 81 forks source link

Broadcast fails to send message via Twilio channel #1676

Open jlangree opened 1 year ago

jlangree commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

Broadcast Messages scheduled through the Broadcast module UI do not get sent to users on the twilio channel. It fails with the following error:

errorUnhandled Rejection
                        HTTP (post) URL /messages
                        Received ""body.conversationId" is required"
                        Request failed with status code 400
STACK TRACE
Error: Request failed with status code 400
    at createError (/snapshot/botpress/node_modules/@botpress/messaging-client/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/snapshot/botpress/node_modules/@botpress/messaging-client/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/snapshot/botpress/node_modules/@botpress/messaging-client/node_modules/axios/lib/adapters/http.js:269:11)
    at IncomingMessage.emit (events.js:327:22)
    at IncomingMessage.EventEmitter.emit (domain.js:482:12)
    at endReadableNT (_stream_readable.js:1221:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

To Reproduce Steps to reproduce the behavior:

  1. Schedule broadcast message through the Broadcast module, setting the filter to channel === 'twilio'
  2. The above error should show in the logs.

Expected behavior

The message should be sent without error.

Screenshots Broadcast messages successfully being sent to the web emulator: image

Environment (please complete the following information):

Additional context

kenkaigu commented 1 year ago

Was this issue ever resolved @jlangree ?

kostyaostapuk commented 1 month ago

@jlangree the same behaviour for telegram