botpress/botpress

Unhandled Promise Rejection trying to call the action whatsapp:startConversation

Closed this issue · 0 comments

Make sure the issue is related to code located in this repository.

  • I confirm that the reported bug or feature request is not related to Botpress on premise version (v12 and below)
  • I confirm that the reported bug or feature request is not related to the Botpress Studio
  • I confirm that the reported bug or feature request is not related to the Botpress Dashboard

Description of the bug or feature request

I implementing the call exactly as the docs say, but still I am getting Unhandled Promise Rejection. Might be because the Whatsapp API needs to be updated in the integration ? (using the exact same parameters works in the Studio)

const result = await client.callAction({
type: 'whatsapp:startConversation',
input: {
userPhone,
templateName,
},
})

Unhandled Promise Rejection {"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"Error: timeout of 60000ms exceeded","reason":{"id":"err_20240415172010xD553C39B","code":500,"type":"Unknown","message":"timeout of 60000ms exceeded"},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: Error: timeout of 60000ms exceeded"," at process.<anonymous> (file:///var/runtime/index.mjs:1276:17)"," at process.emit (node:events:517:28)"," at emit (node:internal/process/promises:149:20)"," at processPromiseRejections (node:internal/process/promises:283:27)"," at processTicksAndRejections (node:internal/process/task_queues:96:32)"," at runNextTicks (node:internal/process/task_queues:64:3)"," at listOnTimeout (node:internal/timers:538:9)"," at process.processTimers (node:internal/timers:512:7)"]}