v12 icon indicating copy to clipboard operation
v12 copied to clipboard

Broadcast fails to send message via Twilio channel

Open jlangree opened this issue 3 years ago • 2 comments

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):

  • OS: Linux
  • Botpress Version 12.28.0 (Docker container)

Additional context

  • The twilio channel works otherwise (receiving message, bot responses, handoffs)
  • Broadcast messages sent to web channel function as expected

jlangree avatar Aug 04 '22 16:08 jlangree

Was this issue ever resolved @jlangree ?

kenkaigu avatar Mar 26 '23 12:03 kenkaigu

@jlangree the same behaviour for telegram

kostyaostapuk avatar May 17 '24 17:05 kostyaostapuk