botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
68 stars 83 forks source link

[BUG] Unable to create a bot #1164

Closed reddyymr closed 2 years ago

reddyymr commented 3 years ago

Describe the bug Unable to create a bot. The moment I click on Save after creating the bot without anything in it.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Create Bot > New Bot'
  2. Name the bot
  3. Select Empty bot from the template --> Create
  4. Click on Config --> See error

Expected behavior It should allow me to configure the Bot.

Screenshots If applicable, add screenshots to help explain your problem. image

Environment (please complete the following information):

Additional context Add any other context about the problem here.

EFF commented 3 years ago

Hey @reddyymr I couldn't reproduce your bug just yet. All fine on my side (macOS binary & docker). @allardy or @hacheybj can you double check on Windows.

Meanwhile, do you have any specific configuration that I'm not aware of or you're using botpress in a vanilla state ?

allardy commented 3 years ago

Hello @reddyymr , I couldn't reproduce your issue. Can you show us what errors you have in your logs ? The error tag means that there was an error while mounting the bot, and when it happens the config may be unavailable.

reddyymr commented 3 years ago

Sure. All I did is, extract botpress-v12_13_1-win-x64.zip in Windows 10 and ran the bp.exe file. Below is the error info for your reference. Do I need to have NodeJS prior to the installation? In other words, does botpress has any dependency on NodeJS?

image

Logs for your reference:

11/23/2020 19:00:23.343 Database Created table 'srv_metadata' 11/23/2020 19:00:23.382 Database Created table 'srv_channel_users' 11/23/2020 19:00:23.397 Database Created table 'workspace_users' 11/23/2020 19:00:23.414 Database Created table 'workspace_invite_codes' 11/23/2020 19:00:23.439 Database Created table 'srv_logs' 11/23/2020 19:00:23.461 Database Created table 'dialog_sessions' 11/23/2020 19:00:23.485 Database Created table 'srv_ghost_files' 11/23/2020 19:00:23.502 Database Created table 'srv_ghost_index' 11/23/2020 19:00:23.517 Database Created table 'srv_notifications' 11/23/2020 19:00:23.534 Database Created table 'srv_kvs' 11/23/2020 19:00:23.547 Database Created table 'data_retention' 11/23/2020 19:00:23.562 Database Created table 'telemetry' 11/23/2020 19:00:23.587 Database Created table 'events' 11/23/2020 19:00:23.606 Database Created table 'tasks' 11/23/2020 19:00:23.622 Database Created table 'bot_chat_users' 11/23/2020 19:00:23.790 Launcher Extracting module "analytics.tgz" ... 11/23/2020 19:00:36.055 Launcher Extracting module "basic-skills.tgz" ... 11/23/2020 19:00:37.882 Launcher Extracting module "builtin.tgz" ... 11/23/2020 19:00:38.127 Launcher Extracting module "channel-web.tgz" ... 11/23/2020 19:00:55.572 Launcher Extracting module "code-editor.tgz" ... 11/23/2020 19:01:01.785 Launcher Extracting module "examples.tgz" ... 11/23/2020 19:01:01.993 Launcher Extracting module "extensions.tgz" ... 11/23/2020 19:01:07.471 Launcher Extracting module "nlu.tgz" ... 11/23/2020 19:01:12.663 Launcher Extracting module "qna.tgz" ... 11/23/2020 19:01:16.740 Launcher Extracting module "testing.tgz" ... 11/23/2020 19:01:17.311 Launcher ======================================== Botpress Server Version 12.13.1 OS win32

11/23/2020 19:01:17.313 Launcher App Data Dir: "C:\Users\User\AppData\Roaming\botpress" 11/23/2020 19:01:17.318 Launcher Using 10 modules ⦿ analytics ⦿ basic-skills ⦿ builtin ⦿ channel-web ⦿ code-editor ⦿ examples ⦿ extensions ⦿ nlu ⦿ qna ⦿ testing ⊝ bot-improvement (disabled) ⊝ broadcast (disabled) ⊝ channel-messenger (disabled) ⊝ channel-slack (disabled) ⊝ channel-smooch (disabled) ⊝ channel-teams (disabled) ⊝ channel-telegram (disabled) ⊝ hitl (disabled) ⊝ misunderstood (disabled) ⊝ ndu (disabled) ⊝ nlu-extras (disabled) ⊝ nlu-testing (disabled) ⊝ uipath (disabled) 11/23/2020 19:01:17.322 Server Running in DEVELOPMENT MODE 11/23/2020 19:01:17.389 Server JWT Secret isn't defined. Generating a random key... 11/23/2020 19:01:17.410 ModuleLoader Added missing "analytics.json" configuration file 11/23/2020 19:01:17.416 ModuleLoader Added missing "basic-skills.json" configuration file 11/23/2020 19:01:17.433 ModuleLoader Added missing "builtin.json" configuration file 11/23/2020 19:01:17.455 ModuleLoader Added missing "channel-web.json" configuration file 11/23/2020 19:01:17.463 ModuleLoader Added missing "code-editor.json" configuration file 11/23/2020 19:01:17.467 ModuleLoader Added missing "examples.json" configuration file 11/23/2020 19:01:17.473 ModuleLoader Added missing "extensions.json" configuration file 11/23/2020 19:01:17.479 ModuleLoader Added missing "nlu.json" configuration file 11/23/2020 19:01:17.483 ModuleLoader Added missing "qna.json" configuration file 11/23/2020 19:01:17.489 ModuleLoader Added missing "testing.json" configuration file 11/23/2020 19:01:19.840 Server Loaded 10 modules 11/23/2020 19:01:19.962 Auth Created table for strategy default 11/23/2020 19:01:19.966 WorkspaceService Created workspace 11/23/2020 19:01:20.013 CMS Loaded 7 content types 11/23/2020 19:01:20.024 Server Botpress Pro must be enabled to use a custom theme and customize the branding. 11/23/2020 19:01:20.796 HTTP External URL is not configured. Using default value of http://localhost:3000. Some features may not work properly 11/23/2020 19:01:20.815 Server Discovered 0 bots 11/23/2020 19:01:20.817 Server Local Action Server will only run in experimental mode 11/23/2020 19:01:21.011 Server Started in 3688ms 11/23/2020 19:01:21.012 Launcher Botpress is listening at: http://localhost:3000 11/23/2020 19:01:21.014 Launcher Botpress is exposed at: http://localhost:3000 11/23/2020 19:02:05.944 BotService Cannot mount bot "chatwithme" [Error, while mounting bot in module nlu: Error: Request failed with status code 403] STACK TRACE Error: while mounting bot in module nlu: Error: Request failed with status code 403 at ModuleLoader. (C:\snapshot\build-windows\out\bp\core\module-loader.js) at Generator.throw () at rejected (C:\snapshot\build-windows\out\bp\core\module-loader.js) at tryCatcher (C:\Work\SD\Assessment\Chatbot\botpress\modules.cache\module926bbdbbb903cf74c2bde72af1efb8c4c18cf838c5679dff7d939d073469e7da\node_production_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (C:\Work\SD\Assessment\Chatbot\botpress\modules.cache\module__926bbdbbb903cf74c2bde72af1efb8c4c18cf838c5679dff7d939d073469e7da\node_production_modules\bluebird\js\release\promise.js:547:31) at Promise._settlePromise (C:\Work\SD\Assessment\Chatbot\botpress\modules.cache\module926bbdbbb903cf74c2bde72af1efb8c4c18cf838c5679dff7d939d073469e7da\node_production_modules\bluebird\js\release\promise.js:604:18) at Promise._settlePromise0 (C:\Work\SD\Assessment\Chatbot\botpress\modules.cache\module926bbdbbb903cf74c2bde72af1efb8c4c18cf838c5679dff7d939d073469e7da\node_production_modules\bluebird\js\release\promise.js:649:10) at Promise._settlePromises (C:\Work\SD\Assessment\Chatbot\botpress\modules.cache\module__926bbdbbb903cf74c2bde72af1efb8c4c18cf838c5679dff7d939d073469e7da\node_production_modules\bluebird\js\release\promise.js:725:18) at _drainQueueStep (C:\Work\SD\Assessment\Chatbot\botpress\modules.cache\module926bbdbbb903cf74c2bde72af1efb8c4c18cf838c5679dff7d939d073469e7da\node_production_modules\bluebird\js\release\async.js:93:12) at _drainQueue (C:\Work\SD\Assessment\Chatbot\botpress\modules.cache\module926bbdbbb903cf74c2bde72af1efb8c4c18cf838c5679dff7d939d073469e7da\node_production_modules\bluebird\js\release\async.js:86:9) at Async._drainQueues (C:\Work\SD\Assessment\Chatbot\botpress\modules.cache\module__926bbdbbb903cf74c2bde72af1efb8c4c18cf838c5679dff7d939d073469e7da\node_production_modules\bluebird\js\release\async.js:102:5) at Immediate.Async.drainQueues [as _onImmediate] (C:\Work\SD\Assessment\Chatbot\botpress\modules.cache\module926bbdbbb903cf74c2bde72af1efb8c4c18cf838c5679dff7d939d073469e7da\node_production_modules\bluebird\js\release\async.js:15:14) at processImmediate (internal/timers.js:456:21) at process.topLevelDomainCallback (domain.js:137:15)

reddyymr commented 3 years ago

Team - Just a followup..

ierezell commented 3 years ago

Hi @reddyymr,

To answer your question : No the binary comes with all (nodejs included) packed inside so you don't need anything else.

I will try to reproduce and come back with some results.

EFF commented 3 years ago

Do you still experience that issue ?

I see this is due to NLU . Do you have your own langage server hosted or something ?

if not, do you stand behind a corporate firewall or something that is blocking/redirecting requests to external resources ?

J-FMartin commented 2 years ago

Hi - we will close this, please reopen if need be.