RocketChat / Apps.Rasa

Integration between Rocket.Chat and the RASA Chatbot platform
17 stars 12 forks source link

Rasa app PostMessageSentHandle #34

Open KheireddineAzzez opened 3 years ago

KheireddineAzzez commented 3 years ago

"{"stack":"TypeError: Cannot read property 'getLogger' of undefined\n at Object.exports.createMessage (evalmachine.:39:18)\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:97:5)\n at PostMessageSentHandler.run (evalmachine.:45:13)\n at RasaApp.executePostMessageSent (evalmachine.:20:9)","message":"Cannot read property 'getLogger' of undefined"}"

dudanogueira commented 3 years ago

Hi!

I have the same problem.

Everything seems to be configured correctly (I have a similar deploy, but with versions 1.1.0 of the app and 3.12.3 of Rocketchat) and got the same error as @KheireddineAzzez

debug: 2021-06-01T14:28:52.910Z Caller: anonymous OR constructor [ "executePostMessageSent is being called..." ] error: 2021-06-01T14:28:52.920Z Caller: run -> run [ "Error occurred while interacting with Rasa Rest API. Details: Cannot read property 'statusCode' of undefined" ] error: 2021-06-01T14:28:52.924Z Caller: anonymous OR constructor [ "{\"stack\":\"TypeError: Cannot read property 'getLogger' of undefined\n at Object.exports.createMessage (evalmachine.:39:18)\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:97:5)\n at PostMessageSentHandler.run (evalmachine.:45:13)\n at RasaApp.executePostMessageSent (evalmachine.:20:9)\",\"message\":\"Cannot read property 'getLogger' of undefined\"}" ] debug: 2021-06-01T14:28:52.924Z Caller: anonymous OR constructor [ "'executePostMessageSent' was unsuccessful." ]

Am I missing something?

dudanogueira commented 3 years ago

For instance, the bot works fine when using the integrations hooks.

But when using the APP, I have also this error as mentioned above.