When I set the Facebook app to live, Botpress won't start

Botpress still makes me crazy no matter what I do, there’s always a problem for me

Before it starts without problems and now:

06/05/2020 12:32:23.570 BotService Cannot mount bot “james” [Error, while mounting bot in module channel-messenger: Error: Request failed with status code 400]STACK TRACEError: 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:0:0) at Generator.throw () at rejected (/snapshot/build-linux/out/bp/core/module-loader.js:0:0) at tryCatcher (/home/harald/Desktop/botpress/modules/.cache/module__190f7183bee8e6a6fa5053658cfdbc512cacdd8878e977d80a3a4256c67c6805/node_production_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/home/harald/Desktop/botpress/modules/.cache/module__190f7183bee8e6a6fa5053658cfdbc512cacdd8878e977d80a3a4256c67c6805/node_production_modules/bluebird/js/release/promise.js:547:31) at Promise._settlePromise (/home/harald/Desktop/botpress/modules/.cache/module__190f7183bee8e6a6fa5053658cfdbc512cacdd8878e977d80a3a4256c67c6805/node_production_modules/bluebird/js/release/promise.js:604:18) at Promise._settlePromise0 (/home/harald/Desktop/botpress/modules/.cache/module__190f7183bee8e6a6fa5053658cfdbc512cacdd8878e977d80a3a4256c67c6805/node_production_modules/bluebird/js/release/promise.js:649:10) at Promise._settlePromises (/home/harald/Desktop/botpress/modules/.cache/module__190f7183bee8e6a6fa5053658cfdbc512cacdd8878e977d80a3a4256c67c6805/node_production_modules/bluebird/js/release/promise.js:725:18) at _drainQueueStep (/home/harald/Desktop/botpress/modules/.cache/module__190f7183bee8e6a6fa5053658cfdbc512cacdd8878e977d80a3a4256c67c6805/node_production_modules/bluebird/js/release/async.js:93:12) at _drainQueue (/home/harald/Desktop/botpress/modules/.cache/module__190f7183bee8e6a6fa5053658cfdbc512cacdd8878e977d80a3a4256c67c6805/node_production_modules/bluebird/js/release/async.js:86:9) at Async._drainQueues (/home/harald/Desktop/botpress/modules/.cache/module__190f7183bee8e6a6fa5053658cfdbc512cacdd8878e977d80a3a4256c67c6805/node_production_modules/bluebird/js/release/async.js:102:5) at Immediate.Async.drainQueues [as _onImmediate] (/home/harald/Desktop/botpress/modules/.cache/module__190f7183bee8e6a6fa5053658cfdbc512cacdd8878e977d80a3a4256c67c6805/node_production_modules/bluebird/js/release/async.js:15:14) at runCallback (timers.js:696:18) at tryOnImmediate (timers.js:667:5) at processImmediate (timers.js:649:5) at process.topLevelDomainCallback (domain.js:121:23)06/05/2020 12:32:23.573 Server Local Action Server will only run in experimental mode06/05/2020 12:32:23.595 Server Started in 2842ms

Problem solved with this method but I think the problem must be solved in the Botpress code.

https://github.com/botpress/botpress/issues/2919

a small tip that can help,

due to some Messenger Authorisations.

before lunching Botpress Server, your messenger App need to by turned in Development Mode.

this will make the bot mounts without any probleme.

after that you can turn back your messenger app to active again.

Hi @Hariko50,

If that is an issue you think may affect all users developing for Messenger, feel free to log it to our GitHub repository. In the meantime, you could use an after_bot_mount hook to update the configuration once the server starts, and similarly an after_bot_unmount to reverse the configuration, before stopping the server.

Let us know if anything else arises!

Happy Building :robot:

Hello Maxime,
Why does everything have to be so complicated?
Why can’t a thing just work?
Thousands of people will switch their app to live.
Greetings
Hariko