Bot stops responding


#1

Please, could someone help me understand the reason my bot stops responding?

17:03:12.969 Launcher ========================================
Botpress Server - Community Edition
Version 11.0.4
========================================
17:03:14.726 Launcher Using 5 modules
⦿ MODULES_ROOT/channel-web
⦿ MODULES_ROOT/nlu
⊝ MODULES_ROOT/hitl (disabled)
⦿ MODULES_ROOT/qna
⦿ MODULES_ROOT/basic-skills
⊝ MODULES_ROOT/audience (disabled)
⦿ MODULES_ROOT/analytics
17:03:14.813 CMS Loaded 6 content types
17:03:14.941 Server Loaded 5 modules
17:03:15.545 Mod[nlu] [Native] Restoring model ‘18b8b729cf246bc3507236471baae251’ from storage
17:03:15.574 HookService Executed “00_create_shortlink.js” on “after_bot_mount”
17:03:15.576 Server Started in 847ms
17:03:15.579 Launcher Botpress is ready at http://localhost:3000/
17:03:27.832 HookService Executed “00_dialog_engine.js” on “after_incoming_middleware”
17:03:31.659 Mod[nlu] NLU Extraction { text: ‘hi’,
intent: ‘hello’,
confidence: 0.999969,
bot_min_confidence: 0.3,
bot_max_confidence: 100,
is_confident_enough: true,
language: ‘en’,
entities: [] }
17:03:31.663 HookService Executed “00_dialog_engine.js” on “after_incoming_middleware”
17:03:31.683 DialogEngine Error processing “on-receive”
Err: Action “” not found, [object Object], [object Object]
Flow: main.flow.json
Node: entry


#2

v11 isn’t quite stable yet, so you may run into weird situations with it.
From the logs it looks like it tries to find an action with empty name.


#3

Hi Alex, thanks for reply. Yes, I think it is completely ok since V11 is rather new. I just wanted to be sure that it wasn’t me missing kin of obvious detail.
Here follows my flow, just in case you also could check it:

{
  "version": "0.0.1",
  "catchAll": {
    "onReceive": [
      ""
    ],
    "next": [
      {
        "condition": "event.nlu.intent.name === 'forget'",
        "node": "forget-my-name"
      }
    ]
  },
  "startNode": "entry",
  "nodes": [
    {
      "id": "a54a82eb7c",
      "name": "entry",
      "onEnter": [
        "getUserVariable {\"name\":\"nickname\",\"output\":\"$r\"}"
      ],
      "onReceive": null,
      "next": [
        {
          "condition": "state.$r !== undefined",
          "node": "welcome"
        },
        {
          "condition": "true",
          "node": "ask-name"
        }
      ]
    },
    {
      "id": "3fc7086c87",
      "name": "ask-name",
      "next": [
        {
          "condition": "true",
          "node": "welcome"
        }
      ],
      "onEnter": [
        "say #!builtin_text-z0J9qh"
      ],
      "onReceive": [
        "setUserVariable {\"name\":\"nickname\",\"value\":\"{{event.payload.text}}\",\"expiry\":\"never\",\"output\":\"$r\"}"
      ]
    },
    {
      "id": "aa3bcb1ad3",
      "name": "welcome",
      "next": [
        {
          "condition": "state.$r === 0",
          "node": "first-time"
        },
        {
          "condition": "state.$r > 0",
          "node": "many-times"
        }
      ],
      "onEnter": [
        "say #!builtin_text-pSsHWg",
        "incrementNumberOfConversations {\"output\":\"$r\"}"
      ],
      "onReceive": []
    },
    {
      "id": "a8dd265d97",
      "name": "first-time",
      "next": [
        {
          "condition": "true",
          "node": "END"
        }
      ],
      "onEnter": [
        "say #!builtin_text-AY5SSW",
        "say #!builtin_text-X069Le"
      ],
      "onReceive": null
    },
    {
      "id": "55e5e14c60",
      "name": "many-times",
      "next": [
        {
          "condition": "true",
          "node": "END"
        }
      ],
      "onEnter": [
        "say #!builtin_text-bFsOmf"
      ],
      "onReceive": null
    },
    {
      "id": "f665775ece",
      "name": "forget-my-name",
      "next": [],
      "onEnter": [
        "say #!builtin_text-TtzrCV",
        "resetUserVariable {\"name\":\"nickname\"}",
        "say #!builtin_text-kKQ8C3"
      ],
      "onReceive": null
    }
  ]
}