Rasa 2.x socketio not working!

I have been runnning my chatbots with Rasa 1.10 version, now I started to test Rasa 2.4 version. Using shell worked, but when using full system with webchat as chatbot widget, it didn’t work. I made some testing and found that Rasa 2.4 doesn’t initialise socket connection.

in credentials file I have

    socketio:
      user_message_evt: user_uttered
      bot_message_evt: bot_uttered
      session_persistence: true

So if I start Rasa docker with this command

docker run --name=rasa1 --user 1003 -v $(pwd):/app -p “5005:5005” rasa/rasa:1.10.11-full run -m models --enable-api --cors “*” --debug

I get this

2021-03-25 09:40:02 DEBUG rasa.core.nlg.generator - Instantiated NLG to ‘TemplatedNaturalLanguageGenerator’.
2021-03-25 09:40:02 INFO root - Rasa server is up and running.
2021-03-25 09:40:06 DEBUG rasa.core.channels.socketio - User 8e53bb19c9334519806b4942b314feba connected to socketIO endpoint.
2021-03-25 09:40:06 DEBUG rasa.core.channels.socketio - User 8e53bb19c9334519806b4942b314feba connected to socketIO endpoint.

If I give this command

docker run --name=rasa1 --user 1003 -v $(pwd):/app -p “5005:5005” rasa/rasa:2.4.1-full run -m models --enable-api --cors “*” --debug

I get this, no socketio started

2021-03-25 09:56:21 DEBUG rasa.core.nlg.generator - Instantiated NLG to ‘TemplatedNaturalLanguageGenerator’.
2021-03-25 09:56:21 INFO root - Rasa server is up and running

There is a bug with socketio in version 2.3 onwards, I believe.

You can either downgrade to v2.2 or you can create a custom rasa image and correct the python socketio version until this is fixed in some future release.

1 Like