Botpress: Bots have erros when enabling messennger

Created on 17 Oct 2020  路  2Comments  路  Source: botpress/botpress

Enable any bot, setup messenger api and tokens

2020-10-17 19:22:29
ecunative
Critical
BotService
Cannot mount bot "ecunative" [Error, while mounting bot in module channel-messenger: Error: Request failed with status code 400]
STACK TRACE
Error: while mounting bot in module channel-messenger: Error: Request failed with status code 400
    at ModuleLoader. (/snapshot/build-linux/out/bp/core/module-loader.js)
    at Generator.throw ()
    at rejected (/snapshot/build-linux/out/bp/core/module-loader.js)
    at tryCatcher (/home/ubuntu/bp/modules/.cache/module__ff27a0dbdfa8def23c3219d245ee5da524f68004cdfce2b4287c155046ccd959/node_production_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/ubuntu/bp/modules/.cache/module__ff27a0dbdfa8def23c3219d245ee5da524f68004cdfce2b4287c155046ccd959/node_production_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/home/ubuntu/bp/modules/.cache/module__ff27a0dbdfa8def23c3219d245ee5da524f68004cdfce2b4287c155046ccd959/node_production_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/home/ubuntu/bp/modules/.cache/module__ff27a0dbdfa8def23c3219d245ee5da524f68004cdfce2b4287c155046ccd959/node_production_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/home/ubuntu/bp/modules/.cache/module__ff27a0dbdfa8def23c3219d245ee5da524f68004cdfce2b4287c155046ccd959/node_production_modules/bluebird/js/release/promise.js:725:18)
    at _drainQueueStep (/home/ubuntu/bp/modules/.cache/module__ff27a0dbdfa8def23c3219d245ee5da524f68004cdfce2b4287c155046ccd959/node_production_modules/bluebird/js/release/async.js:93:12)
    at _drainQueue (/home/ubuntu/bp/modules/.cache/module__ff27a0dbdfa8def23c3219d245ee5da524f68004cdfce2b4287c155046ccd959/node_production_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/home/ubuntu/bp/modules/.cache/module__ff27a0dbdfa8def23c3219d245ee5da524f68004cdfce2b4287c155046ccd959/node_production_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/home/ubuntu/bp/modules/.cache/module__ff27a0dbdfa8def23c3219d245ee5da524f68004cdfce2b4287c155046ccd959/node_production_modules/bluebird/js/release/async.js:15:14)
    at processImmediate (internal/timers.js:456:21)
    at process.topLevelDomainCallback (domain.js:137:15)
2020-10-17 19:24:54
ecunative
Error
DialogEngine
An error occurred in the error handler. Abandoning. [Error, Flow not found: error, Bot: ecunative, Flow: error, Node: N/A]
STACK TRACE
Error: Flow not found: error, Bot: ecunative, Flow: error, Node: N/A
    at DialogEngine._findFlow (/snapshot/build-linux/out/bp/core/services/dialog/dialog-engine.js)
    at DialogEngine. (/snapshot/build-linux/out/bp/core/services/dialog/dialog-engine.js)
    at Generator.next ()
    at fulfilled (/snapshot/build-linux/out/bp/core/services/dialog/dialog-engine.js)
    at tryCatcher (/home/ubuntu/bp/modules/.cache/module__ff27a0dbdfa8def23c3219d245ee5da524f68004cdfce2b4287c155046ccd959/node_production_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/ubuntu/bp/modules/.cache/module__ff27a0dbdfa8def23c3219d245ee5da524f68004cdfce2b4287c155046ccd959/node_production_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/home/ubuntu/bp/modules/.cache/module__ff27a0dbdfa8def23c3219d245ee5da524f68004cdfce2b4287c155046ccd959/node_production_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/home/ubuntu/bp/modules/.cache/module__ff27a0dbdfa8def23c3219d245ee5da524f68004cdfce2b4287c155046ccd959/node_production_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/home/ubuntu/bp/modules/.cache/module__ff27a0dbdfa8def23c3219d245ee5da524f68004cdfce2b4287c155046ccd959/node_production_modules/bluebird/js/release/promise.js:729:18)
    at _drainQueueStep (/home/ubuntu/bp/modules/.cache/module__ff27a0dbdfa8def23c3219d245ee5da524f68004cdfce2b4287c155046ccd959/node_production_modules/bluebird/js/release/async.js:93:12)
    at _drainQueue (/home/ubuntu/bp/modules/.cache/module__ff27a0dbdfa8def23c3219d245ee5da524f68004cdfce2b4287c155046ccd959/node_production_modules/bluebird/js/release/async.js:86:9)
    at Async._drainQueues (/home/ubuntu/bp/modules/.cache/module__ff27a0dbdfa8def23c3219d245ee5da524f68004cdfce2b4287c155046ccd959/node_production_modules/bluebird/js/release/async.js:102:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/home/ubuntu/bp/modules/.cache/module__ff27a0dbdfa8def23c3219d245ee5da524f68004cdfce2b4287c155046ccd959/node_production_modules/bluebird/js/release/async.js:15:14)
    at processImmediate (internal/timers.js:456:21)
    at process.topLevelDomainCallback (domain.js:137:15)

I attached here the logs.

bug modulchannel-messenger

All 2 comments

We should add more logging to the Messenger module, so that it's clear what errors are sent back from Facebook

Fixed by https://github.com/botpress/botpress/pull/4261
@uhlhosting Can you try again with the latest version of Botpress? You should see more logs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jbourassa picture jbourassa  路  12Comments

BPMJoannette picture BPMJoannette  路  3Comments

rainmakerho picture rainmakerho  路  4Comments

JustusNBB picture JustusNBB  路  9Comments

mhjb picture mhjb  路  3Comments