Can't connect rasa with rasa-webchat through socket.io

I tried to use different version of webchat 0.4.1, 0.5.3, 0.5.9 still doesn’t work.

Rasa logs:

2019-06-25 12:17:11 INFO     engineio.server  - e15fd17ab7fc42a992207534a125be05: Sending packet OPEN data {'sid': 'e15fd17ab7fc42a992207534a125be05', 'upgrades': ['websocket'], 'pingTimeout': 60000, 'pingInterval': 25000}
2019-06-25 12:17:11 INFO     engineio.server  - e15fd17ab7fc42a992207534a125be05: Sending packet MESSAGE data 0

I’ve read many threads here and i think this is about upgrading websocket but i don’t know what doest i mean.

So i have flask hello world with rasa-webchat and running rasa in another shell.

Can you tell me please how i can fix this problem?

The error was caused by CORS. So i point ngrok url to webchat.

hi @Nick_Kazakov can you tell me please how to connect rasa webchat through socket io i didn’t found documentation or steps to do it

@SallemiDorsaf I had the same issue , I resolved it by updating to latest version of rasa. Once you have your bot ready add the below configuration in the credentials.yml file

socketio:
user_message_evt: user_uttered
bot_message_evt: bot_uttered
session_persistence: true

Now start your bot using this command :slight_smile:

rasa run -m models --enable-api --cors "*" --debug

2 Likes

You r the best. the best.