# Rasa 2.x socketio not working!

**URL:** <https://forum.rasa.com/t/rasa-2-x-socketio-not-working/41702>\
**Category:** Rasa Open Source\
**Created:** [March 25, 2021, 10:22am UTC](https://forum.rasa.com/t/rasa-2-x-socketio-not-working/41702 "2021-03-25T10:22:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![InnoOmnia](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/innoomnia/32/17290_2.png) [@InnoOmnia](https://forum.rasa.com/u/InnoOmnia)\
**Post date:** [March 25, 2021, 10:22am UTC](https://forum.rasa.com/t/rasa-2-x-socketio-not-working/41702/1 "2021-03-25T10:22:15Z")

</div>

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

```auto
    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

---

<div class="post-metadata">

**Author:** ![YuaNWA](https://avatars.discourse-cdn.com/v4/letter/y/ce73a5/32.png) [@YuaNWA](https://forum.rasa.com/u/YuaNWA)\
**Post date:** [March 27, 2021, 6:28am UTC](https://forum.rasa.com/t/rasa-2-x-socketio-not-working/41702/2 "2021-03-27T06:28:25Z")

</div>

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

> <https://github.com/RasaHQ/rasa/issues/7997#issue-811932982>
>
> Rasa version: 2.3.x
> Python version: 3.7.8
> Issue: SocketIO not confirming session\_request in v2.3.x
> Hi,
> There seems to be a bug( or undocumented change) in rasa...

> <https://github.com/RasaHQ/rasa/issues/8092>
>
> Rasa version: 2.3.4
> Socket.IO Javacsript client version: 3.1.2
> Operating system: osx
> Issue: Connecting to Rasa 2.3.4 using socket.io is not possible due to the...

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.
