Botpress unexpectedly looking for welcome-bot and failing

#1

Hello,

I am facing this wierd issue (probably my mistake somewhere), and I am stuck and I dont know how to fix this. Botpress version v11.8. Node version 10.15.3

I had a working bot, and I was experimenting with embedding it on a webpage following the instructions here: https://botpress.io/docs/tutorials/

My bot is successfully embedded on the page. The issue is that it keeps on throwing an Unhandled rejection by the launcher. While debugging the logs here is the sketchy part:

bp:api:request /api/v1/bots/firstbot/mod/channel-web/conversations/mlGVR0CQqFy425KEYLj9U { method: ‘GET’, ip: ‘::1’, originalUrl: ‘/api/v1/bots/firstbot/mod/channel-web/conversations/mlGVR0CQqFy425KEYLj9U’ } +502ms

bp:api:request /api/v1/bots/firstbot/mod/channel-web/conversations/mlGVR0CQqFy425KEYLj9U/4 { method: ‘GET’, ip: ‘::1’, originalUrl: ‘/api/v1/bots/firstbot/mod/channel-web/conversations/mlGVR0CQqFy425KEYLj9U/4’ } +9ms

bp:api:request /api/v1/bots/welcome-bot/mod/channel-web/conversations/mlGVR0CQqFy425KEYLj9U { method: ‘GET’, ip: ‘::1’, originalUrl: ‘/api/v1/bots/welcome-bot/mod/channel-web/conversations/mlGVR0CQqFy425KEYLj9U’ } +6s

16:15:32.149 Launcher Unhandled Rejection [VError, Error reading configuration file “bot.config.json”: ENOENT: no such file or directory, open ‘/Documents/Work/botpress/data/bots/welcome-bot/bot.config.json’]

I have no idea why its looking for welcome-bot. There is no such bot, and its bound to fail. This request keeps throwing an exception, and eventually my bot becomes unresponsive. This issue can be reproduced on the webpage as well as emulator from the studio, so my guess is that it has nothing to do with the webpage.

Looking for some help,

Thanks & regards,
Nishant

EDIT: here is the stacktrace:

2:28:03.237 Launcher Unhandled Rejection [VError, Error reading configuration file “bot.config.json”: ENOENT: no such file or directory, open ‘/Users/nishant/Documents/Work/botpress/data/bots/welcome-bot/bot.config.json’]
STACK TRACE
VError: Error reading configuration file “bot.config.json”: ENOENT: no such file or directory, open ‘/Users/nishant/Documents/Work/botpress/data/bots/welcome-bot/bot.config.json’
at ConfigProvider. (/snapshot/build-mac/out/bp/core/config/config-loader.js:0:0)
at Generator.throw ()
at rejected (/snapshot/build-mac/out/bp/core/config/config-loader.js:0:0)
at tryCatcher (/Users/nishant/Documents/Work/botpress/modules/.cache/module__6816bc6542284a05877cbc1d9f9a2e31b39e0d0ba3e6cce4bd0d01d4e72e0e46/node_production_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/nishant/Documents/Work/botpress/modules/.cache/module__6816bc6542284a05877cbc1d9f9a2e31b39e0d0ba3e6cce4bd0d01d4e72e0e46/node_production_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/Users/nishant/Documents/Work/botpress/modules/.cache/module__6816bc6542284a05877cbc1d9f9a2e31b39e0d0ba3e6cce4bd0d01d4e72e0e46/node_production_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/Users/nishant/Documents/Work/botpress/modules/.cache/module__6816bc6542284a05877cbc1d9f9a2e31b39e0d0ba3e6cce4bd0d01d4e72e0e46/node_production_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/Users/nishant/Documents/Work/botpress/modules/.cache/module__6816bc6542284a05877cbc1d9f9a2e31b39e0d0ba3e6cce4bd0d01d4e72e0e46/node_production_modules/bluebird/js/release/promise.js:690:18)
at _drainQueueStep (/Users/nishant/Documents/Work/botpress/modules/.cache/module__6816bc6542284a05877cbc1d9f9a2e31b39e0d0ba3e6cce4bd0d01d4e72e0e46/node_production_modules/bluebird/js/release/async.js:138:12)
at _drainQueue (/Users/nishant/Documents/Work/botpress/modules/.cache/module__6816bc6542284a05877cbc1d9f9a2e31b39e0d0ba3e6cce4bd0d01d4e72e0e46/node_production_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/Users/nishant/Documents/Work/botpress/modules/.cache/module__6816bc6542284a05877cbc1d9f9a2e31b39e0d0ba3e6cce4bd0d01d4e72e0e46/node_production_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (/Users/nishant/Documents/Work/botpress/modules/.cache/module__6816bc6542284a05877cbc1d9f9a2e31b39e0d0ba3e6cce4bd0d01d4e72e0e46/node_production_modules/bluebird/js/release/async.js:17: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)

#2

I have also tried a fresh installation of botpress binary. Still the same issue, irrespective of whether I am using the emulator, or embedding my bot on a webpage.

why is botpress looking for welcome-bot directory?

How do I debug botpress core?

#3

Looks like it was a caching problem. Clearing my cache seems to have worked for now. Thanks.

#4

I was about to ask if welcome-bot was present in /data/global/workspaces.json. Please let us know if you experience this again. Caching should not cause problem.

#5

No welcome-bot reference in workspaces.json.