botpress / v12

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

Not sending user messages after migration to 12.1.3 #811

Closed Macaret closed 4 years ago

Macaret commented 4 years ago

Botpress chatbot deployed on Ubuntu is not sending user messages after migration to 12.1.3, from 11.9. Nothing appears to be wrong from the start, the chatbot is starting as expected, I'm able to enter the simulator or the landing page, without any errors, but when it comes to submit anything, the window is not responding. Whatever I submit is not showing up on the screen, but in the console it appears to work.

Only if I restart the page, simulator or landing page, the messages that were sent do show up in the correct order with the correct answers from the chatbot.

The console window is not showing any errors, only the browser displays some websocket connection errors.

My previous version of 11.9 is working fine, but the new version 12.1 is not, even if I put an empty chatbot, downloaded straight from the website.

To Reproduce Steps to reproduce the behaviour:

  1. Download version 12.1.
  2. Deploy on Ubuntu.
  3. Try to send any message.

Environment:

Botpress console log:

11:02:35.779 Launcher ========================================
                                  Botpress Server            
                                   Version 12.1.3             
                                  OS linux ubuntu            
                      ========================================
11:02:35.784 Launcher App Data Dir: "chatbot_eng"
11:02:37.555 Launcher Using 9 modules
                      ⦿ MODULES_ROOT/analytics
                      ⦿ MODULES_ROOT/basic-skills
                      ⦿ MODULES_ROOT/builtin
                      ⊝ MODULES_ROOT/channel-messenger (disabled)
                      ⊝ MODULES_ROOT/channel-slack (disabled)
                      ⊝ MODULES_ROOT/channel-teams (disabled)
                      ⊝ MODULES_ROOT/channel-telegram (disabled)
                      ⦿ MODULES_ROOT/channel-web
                      ⦿ MODULES_ROOT/code-editor
                      ⦿ MODULES_ROOT/extensions
                      ⊝ MODULES_ROOT/history (disabled)
                      ⊝ MODULES_ROOT/hitl (disabled)
                      ⦿ MODULES_ROOT/nlu
                      ⦿ MODULES_ROOT/qna
                      ⦿ MODULES_ROOT/testing
11:02:38.979 Server Loaded 9 modules
11:02:39.045 CMS Loaded 7 content types
11:02:39.462 HTTP External URL is not configured. Using default value of http://localhost:3000. Some features may not work proprely
11:02:39.564 Server Started in 2006ms
11:02:39.564 Launcher Botpress is ready at http://localhost:3000
11:02:49.401 Launcher bp:dialog (test) [saFy4SJ23GYC5WKyoYUE4] processing timeout{ botId: 'test' }, +0ms
11:02:52.036 Mod[nlu] Restoring models '1f7d7401721c7ff696c9ba21c2130b29' from storage
11:02:52.647 Mod[nlu] No slots (CRF) model found for hash 1f7d7401721c7ff696c9ba21c2130b29
11:02:52.647 Mod[nlu] Done restoring models '1f7d7401721c7ff696c9ba21c2130b29' from storage
11:02:53.687 Launcher bp:dialog (test) [saFy4SJ23GYC5WKyoYUE4] init new context { currentNode: 'entry', currentFlow: 'main.flow.json' }{ botId: 'test' }, +4s
11:02:53.688 Launcher bp:dialog (test) [saFy4SJ23GYC5WKyoYUE4] render element "#!builtin_text-lbs0Re"{ botId: 'test' }, +0ms
11:02:53.692 Launcher bp:dialog (test) [saFy4SJ23GYC5WKyoYUE4] execute action "builtin/removeContext"{ botId: 'test' }, +4ms
11:02:53.728 Launcher bp:dialog (test) [saFy4SJ23GYC5WKyoYUE4] eval transition "always" to [topic-choices]{ botId: 'test' }, +36ms
11:02:53.728 Launcher bp:dialog (test) [saFy4SJ23GYC5WKyoYUE4] transit (main.flow.json) [entry] -> [topic-choices]{ botId: 'test' }, +42ms
11:02:53.729 Launcher bp:dialog (test) [saFy4SJ23GYC5WKyoYUE4] render element "#!builtin_single-choice-mrFFU_"{ botId: 'test' }, +1ms
11:02:53.745 Launcher bp:dialog (test) [saFy4SJ23GYC5WKyoYUE4] eval transition "always" to [parse]{ botId: 'test' }, +16ms
11:02:53.746 Launcher bp:dialog (test) [saFy4SJ23GYC5WKyoYUE4] transit (skills/choice-62d44d.flow.json) [entry] -> [parse]{ botId: 'test' }, +18ms
11:02:53.748 Launcher bp:dialog (test) [saFy4SJ23GYC5WKyoYUE4] waiting until next event{ botId: 'test' }, +2ms
11:06:06.022 Launcher bp:dialog (test) [saFy4SJ23GYC5WKyoYUE4] execute action "basic-skills/choice_parse_answer"{ botId: 'test' }, +3m
11:06:06.035 Launcher bp:dialog (test) [saFy4SJ23GYC5WKyoYUE4] eval transition "always" to [invalid]{ botId: 'test' }, +13ms
11:06:06.035 Launcher bp:dialog (test) [saFy4SJ23GYC5WKyoYUE4] transit (skills/choice-62d44d.flow.json) [parse] -> [invalid]{ botId: 'test' }, +3m
11:06:06.036 Launcher bp:dialog (test) [saFy4SJ23GYC5WKyoYUE4] execute action "basic-skills/choice_invalid_answer"{ botId: 'test' }, +1ms
11:06:06.042 Launcher bp:dialog (test) [saFy4SJ23GYC5WKyoYUE4] eval transition "always" to [#]{ botId: 'test' }, +6ms
11:06:06.043 Launcher bp:dialog (test) [saFy4SJ23GYC5WKyoYUE4] transit (main.flow.json) [main.flow.json] << (main.flow.json) [topic-choices]{ botId: 'test' }, +8ms
Screenshot 2019-09-06 at 15 09 43
allardy commented 4 years ago

Hi @Macaret, we changed the order of transports for sockets recently, but we also added a configuration in the botpress.config.json file.

Open botpress.config.json and set the configuration httpServer.socketTransports = ['polling', 'websocket'] to roll back to the previous behavior (that config is added in 12.1.3)

Macaret commented 4 years ago

@allardy Thank You! Your solution works.