Fail to load webchat bot on webpage using ngrok

yes, I have the socketUrl: "https://xxxxx.ngrok.io"

@vio_lovis share me

socketUrl: "http://????",

from the snippet code, please.

@vio_lovis also share me sanic and python-engine versions using the command pip list whilst activating env

Ok, here you are:

socketUrl: "https://7204-85-16-177-56.ngrok.io",
socketPath: "/socket.io/",
hideWhenNotConnected: false,

In my conda environment I have:

sanic                   21.9.3
python-engineio         4.3.0

@vio_lovis I’m hesitating to provide the solution as its really weird error as it should not even show to you the bot at all, if you ready for the experiment should I suggest you as I don’t want that your environment disturb.

@vio_lovis I’d highly recommend to create pip freeze > requirements.txt for your current environment please. For your own Reference.

Do you want to try the suggestion yes Or no?

Well, I am going to try!
I always appreciate your help - so let’s go for it…
So, I do pip freeze > requirements.txt first

@vio_lovis ok then, at your risk.

updated these versions and not it will have other compatibilities issue, so make sure you met them.

sanic 21.6.0 and python-engineio 4.3.1

Do let me know and please create the requirements.txt file handy before experimenting please.

Hi there,
so yesterday I tried to find a combination of sanic 21.6.0, sanic-cors, sanic-routing ans sanic-plugins-framework, which was also compatible with rasa 3.0.4 - well, there was none. So I decided to try even though there was sanic-plugins-framework 0.95, which was not compatible with the rest… :expressionless:
good news - this error message was gone, but bad news - it didn’t work

So today I decided I would create a new conda environment and installed:

rasa 3.0.0; rasa-sdk 3.0.0; sanic 21.6.0; sanic-cors 1.0.0: sanic-routing 0.7.0; nodejs v17.4.0; npm 8.3.1; socket.io 4.4.1

Basically, I tried what you suggestes here. And it is working like a charm. :star_struck:

Do I need to be concerned that rasa 3.0.0 is not compatible with sanic-routung 0.7.0?

Thanks again for your help!

@vio_lovis Wow, nice congrats. I know you will do it, but was hesitating in starting as because of my suggestion or solution your environment can be affected as this issue can only be dealt with a lot of compatibility settings? Great, you also even find the previous solution thread that I forgot :stuck_out_tongue: All and good work.

Thanks :blush:
So, did I understand correctly: there is no need to be concerned that rasa 3.0.0 is not compatible with sanic-routung 0.7.0? I mean everything is working right now… :woman_shrugging:
never disturb a working environment :laughing:

The latest update of Rasa has some issues, but I guess the Rasa team is working or maybe a few issues have already been solved. So yes, there can be some concerns depending on the system and versions. So, in summary, it varies as per the version :slight_smile:

1 Like