Report ID: c4b59338-3c9a-46e3-af21-abd7df776eb7
I am running a bot in Facebook Messenger (development environment) and encountering an error.
No error occurs when running in the Botpress Studio Environment.
When the dialog reaches a 'Single Choice' on Messenger, the dialog ends an error is logged:
Error sending outgoing message {
integration: 'messenger',
messageType: 'choice',
payload: '{"type":"choice","text":"","options":[{"label":"Instant property valuation","value":"Instant property valuation"},{"label":"Properties for Sale","value":"Properties for Sale"},{"label":"Properties to Let","value":"Properties to Let"}]}',
error: Bt [Error]: data/text must NOT have fewer than 1 characters
at Mr (/var/task/customer_code.js:8:27989)
at Ot (/var/task/customer_code.js:8:27769)
at w (/var/task/customer_code.js:8:67156)
at /var/task/customer_code.js:8:62056
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.flushSendMessages (/var/task/customer_code.js:297:4944)
at async runDialogEngine (/var/task/customer_code.js:318:3660)
at async startEventProcessing (/var/task/customer_code.js:318:3247)
at async Object.onEvent (/var/task/customer_code.js:318:8013)
at async Object.onMessage (/var/task/customer_code.js:318:7655) {
isApiError: true,
code: 400,
description: "The provided data doesn't respect the provided JSON schema.",
type: 'InvalidDataFormat',
error: undefined
}
}
The error seems to be stemming from the empty 'text' element.
This same bot was working yesterday and I don't believe that any changes were made since to the 'Single Choice' card which is throwing the error.
Thanks.