# Rasa 3.0 error socket.io

**URL:** <https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061>\
**Category:** Rasa Open Source\
**Created:** [December 15, 2021, 6:47pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061 "2021-12-15T18:47:17Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Euler](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Euler](https://forum.rasa.com/u/Euler)\
**Post date:** [December 15, 2021, 9:08pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/22 "2021-12-15T21:08:22Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/2/e/2ed4e91c437fcae3023027be676784cac3894a2b.png)

I’ll check all packages and i’ll let you know

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [December 15, 2021, 9:09pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/23 "2021-12-15T21:09:38Z")

</div>

@Euler Just try fix the dependencies issue or downgrade the versions, your machine is window so just solve it, I know you can do it.

@Euler do even try `sanic==20.9.0` in case.

---

<div class="post-metadata">

**Author:** ![Euler](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Euler](https://forum.rasa.com/u/Euler)\
**Post date:** [December 20, 2021, 1:30pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/24 "2021-12-20T13:30:44Z")

</div>

@nik202 , I did, everything that was in my power, I updated all the packages according to the requisite3.0.2.txt file that you sent me, and I still have the same problem.

I’m finding rasa 3.0 doesn’t work with [socket.io](http://socket.io) .

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [December 20, 2021, 6:04pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/25 "2021-12-20T18:04:07Z")

</div>

@Euler Ok, what is your current version? and sorry for late reply.

---

<div class="post-metadata">

**Author:** ![Euler](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Euler](https://forum.rasa.com/u/Euler)\
**Post date:** [December 21, 2021, 1:08pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/26 "2021-12-21T13:08:31Z")

</div>

Testei as versões superiores a 2.2.0, e nenhuma delas o [socket.io](http://socket.io) funcionou para mim. Hoje eu estou utilizando a versão: 2.0.2.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/6/8/68b78e26f62a1d98fc1a2544a8fadb8d52437338.jpeg)

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [December 21, 2021, 2:52pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/27 "2021-12-21T14:52:22Z")

</div>

@Euler I not understand your language but your version is 2.8.3 did you downgraded from 3.x? You not able to run the rasa shell even or you are doing integration with some third party frontend ?

---

<div class="post-metadata">

**Author:** ![rafa21](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rafa21/32/18713_2.png) [@rafa21](https://forum.rasa.com/u/rafa21)\
**Post date:** [December 27, 2021, 11:40pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/28 "2021-12-27T23:40:14Z")

</div>

> [@nik202](#):
>
> `sanic-routing==0.7.0`

Hi @nik202

The versions you list seem to be incompatible according to pip:

```auto
rasa 3.0.2 requires sanic-routing<0.8.0,>=0.7.2, but you have sanic-routing 0.7.0 which is incompatible.
sanic 21.6.0 requires sanic-routing==0.7.0, but you have sanic-routing 0.7.2 which is incompatible.

```

When I run

`pip install sanic==21.6.0 Sanic-Cors==1.0.0 sanic-jwt==1.7.0 sanic-plugin-toolkit==1.2.0 Sanic-Plugins-Framework==0.9.5 sanic-routing==0.7.0`

I get

```auto
ERROR: Cannot install sanic-cors==1.0.0, sanic-plugin-toolkit==1.2.0, sanic-plugins-framework==0.9.5 and sanic==21.6.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested sanic==21.6.0
    sanic-cors 1.0.0 depends on sanic<22 and >=21.3.1
    sanic-plugin-toolkit 1.2.0 depends on sanic
    sanic-plugins-framework 0.9.5 depends on sanic<21 and >=18.12.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

```

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [December 28, 2021, 3:11pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/29 "2021-12-28T15:11:42Z")

</div>

@rafa21 Yeps, I know 🙂 that’s why in my post I emphasised take care of dependencies as user have different pip versions for dealing we can use `--use-deprecated=legacy-resolver`.

---

<div class="post-metadata">

**Author:** ![cyberandy](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/cyberandy/32/18668_2.png) [@cyberandy](https://forum.rasa.com/u/cyberandy)\
**Post date:** [January 7, 2022, 8:28am UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/30 "2022-01-07T08:28:45Z")

</div>

> [@nik202](#):
>
> sanic==20.9.0

I am having a similar issue, [socket.io](http://socket.io) doesn’t work (rest does but I am trying to test the webchat), I am running on MacOS. I followed your instructions for RASA 3.0.2 but with no luck.

Here is the error when I call `http://0.0.0.0:5005/socket.io`:

```auto
The client is using an unsupported version of the Socket.IO or Engine.IO protocols (further occurrences of this error will be logged with level INFO)
[2022-01-07 09:17:57 +0100] [20522] [ERROR] Exception occurred while handling uri: 'http://0.0.0.0:5005/socket.io'
Traceback (most recent call last):
  File "handle_request", line 83, in handle_request
    class Sanic(BaseSanic, metaclass=TouchUpMeta):
  File "/Users/cyberandy/.chat_rasa/lib/python3.7/site-packages/engineio/asyncio_server.py", line 236, in handle_request
    ), environ)
  File "/Users/cyberandy/.chat_rasa/lib/python3.7/site-packages/engineio/asyncio_server.py", line 388, in _make_response
    response_dict['response'], environ)
  File "/Users/cyberandy/.chat_rasa/lib/python3.7/site-packages/engineio/async_drivers/sanic.py", line 103, in make_response
    status=int(status.split()[0]), headers=headers_dict)
TypeError: 'NoneType' object is not callable
[2022-01-07 09:17:58 +0100] [20522] [ERROR] Exception occurred while handling uri: 'http://0.0.0.0:5005/socket.io'
Traceback (most recent call last):
  File "handle_request", line 83, in handle_request
    class Sanic(BaseSanic, metaclass=TouchUpMeta):
  File "/Users/cyberandy/.chat_rasa/lib/python3.7/site-packages/engineio/asyncio_server.py", line 236, in handle_request
    ), environ)
  File "/Users/cyberandy/.chat_rasa/lib/python3.7/site-packages/engineio/asyncio_server.py", line 388, in _make_response
    response_dict['response'], environ)
  File "/Users/cyberandy/.chat_rasa/lib/python3.7/site-packages/engineio/async_drivers/sanic.py", line 103, in make_response
    status=int(status.split()[0]), headers=headers_dict)
TypeError: 'NoneType' object is not callable

```

Here are the versions of the packages that I am using:

```auto
absl-py==0.13.0
aio-pika==6.8.0
aiofiles==0.8.0
aiohttp==3.7.4
aioredis==2.0.0
aiormq==3.3.1
alembic==1.4.3
APScheduler==3.7.0
astunparse==1.6.3
async-generator==1.10
async-timeout==3.0.1
attrs==19.3.0
bidict==0.21.4
boto3==1.20.24
botocore==1.23.24
CacheControl==0.12.10
cached-property==1.5.2
cachetools==4.2.4
certifi==2021.10.8
cffi==1.15.0
chardet==3.0.4
charset-normalizer==2.0.9
clang==5.0
cloudpickle==1.6.0
colorclass==2.2.2
coloredlogs==15.0.1
colorhash==1.0.4
croniter==1.1.0
cryptography==3.4.8
cycler==0.11.0
dask==2021.11.2
decorator==4.4.2
dm-tree==0.1.6
dnspython==1.16.0
docopt==0.6.2
fbmessenger==6.0.0
fire==0.4.0
flatbuffers==1.12
fsspec==2021.11.1
future==0.18.2
gast==0.4.0
gitdb==4.0.9
GitPython==3.1.24
google-auth==2.3.3
google-auth-oauthlib==0.4.6
google-pasta==0.2.0
greenlet==1.1.2
grpcio==1.43.0
h11==0.9.0
h5py==3.1.0
httpcore==0.11.1
httptools==0.3.0
httpx==0.15.4
humanfriendly==10.0
idna==2.10
importlib-metadata==4.9.0
isodate==0.6.1
jmespath==0.10.0
joblib==1.0.1
jsonpickle==2.0.0
jsonschema==3.2.0
kafka-python==2.0.2
keras==2.6.0
Keras-Preprocessing==1.1.2
kiwisolver==1.3.2
locket==0.2.1
lxml==4.7.1
Mako==1.1.6
Markdown==3.3.6
MarkupSafe==2.0.1
matplotlib==3.3.4
mattermostwrapper==2.2
msgpack==1.0.3
multidict==5.0.0
networkx==2.5.1
numpy==1.19.5
oauthlib==3.1.1
opt-einsum==3.3.0
packaging==20.9
pamqp==2.3.0
partd==1.2.0
pathspec==0.9.0
pika==1.2.0
Pillow==8.4.0
prompt-toolkit==2.0.10
protobuf==3.19.1
psycopg2-binary==2.9.2
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.21
pydot==1.4.2
PyJWT==2.0.0
pykwalify==1.8.0
pymongo==3.10.1
pyparsing==3.0.6
pyrsistent==0.18.0
pyTelegramBotAPI==3.8.3
python-crfsuite==0.9.7
python-dateutil==2.8.2
python-editor==1.0.4
python-engineio==4.3.0
python-socketio==5.5.0
python3-saml==1.12.0
pytz==2021.3
PyYAML==6.0
questionary==1.5.2
randomname==0.1.5
rasa==3.0.2
rasa-sdk==3.0.2
rasa-x==1.0.0
redis==3.5.3
regex==2021.7.6
requests==2.25.1
requests-oauthlib==1.3.0
requests-toolbelt==0.9.1
rfc3986==1.5.0
rocketchat-API==1.16.0
rsa==4.8
ruamel.yaml==0.16.13
ruamel.yaml.clib==0.2.6
s3transfer==0.5.0
sanic==21.9.3
Sanic-Cors==1.0.1
sanic-jwt==1.6.0
sanic-plugin-toolkit==1.2.0
Sanic-Plugins-Framework==0.9.5
sanic-routing==0.7.2
scikit-learn==0.24.2
scipy==1.7.3
sentry-sdk==1.2.0
six==1.15.0
sklearn-crfsuite==0.3.6
slackclient==2.9.3
smmap==5.0.0
sniffio==1.2.0
SQLAlchemy==1.4.28
tabulate==0.8.9
tarsafe==0.0.3
tensorboard==2.7.0
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.0
tensorflow==2.6.1
tensorflow-addons==0.14.0
tensorflow-estimator==2.6.0
tensorflow-hub==0.12.0
tensorflow-probability==0.13.0
tensorflow-text==2.6.0
termcolor==1.1.0
terminaltables==3.1.10
threadpoolctl==3.0.0
toolz==0.11.2
tqdm==4.62.3
twilio==6.50.1
typeguard==2.13.3
typing-extensions==3.7.4.3
typing-utils==0.1.0
tzlocal==2.1
ujson==1.35
urllib3==1.26.7
uvloop==0.14.0
wcwidth==0.2.5
webexteamssdk==1.6
websockets==10.1
Werkzeug==2.0.2
wrapt==1.12.1
xmlsec==1.3.12
yamllint==1.26.3
yarl==1.7.2
zipp==3.6.0

```

---

<div class="post-metadata">

**Author:** ![Euler](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Euler](https://forum.rasa.com/u/Euler)\
**Post date:** [January 7, 2022, 12:36pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/31 "2022-01-07T12:36:43Z")

</div>

And exactly the same problem I have here, I’m thinking the problem is in the web part, where do I download the most updated version of webchat.js?

---

<div class="post-metadata">

**Author:** ![Euler](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Euler](https://forum.rasa.com/u/Euler)\
**Post date:** [January 7, 2022, 2:42pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/32 "2022-01-07T14:42:41Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/1/a/1a5dd1e079b05f2680eb8f6018f3aa6858e2ea0b.png)

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [January 7, 2022, 3:56pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/33 "2022-01-07T15:56:08Z")

</div>

@cyberandy I’m wondering, I have same configurations and I’m able to see the chatbot on my Mac Machine, without an issue.

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [January 7, 2022, 3:57pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/34 "2022-01-07T15:57:58Z")

</div>

@Euler for you reference Euler, I’m attaching the requirement.txt file for my current working environment may it will help you, try see the other packages version. [requirements3.0.2.txt](https://forum.rasa.com/uploads/short-url/o3iulslOY9ynt8ZuenF6OgIPD7z.txt) (3.0 KB)

**Note:** Above file is based on Mac OS installation of rasa 3.0.2

I will even work around my Window Machine for the same in next few days and get back you guys.

---

<div class="post-metadata">

**Author:** ![Euler](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Euler](https://forum.rasa.com/u/Euler)\
**Post date:** [January 7, 2022, 7:53pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/35 "2022-01-07T19:53:53Z")

</div>

I’ve updated exactly with the requirements3.0.2.txt file you posted, and it’s still giving me the error, as shown in the image:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/7/0/70203d5ed33d7468d00d09796be5b6155c042aa0.png)

Can you forward me the chatbot HTML page and the webchat.js file

---

<div class="post-metadata">

**Author:** ![tinayemakoni](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tinayemakoni/32/18819_2.png) [@tinayemakoni](https://forum.rasa.com/u/tinayemakoni)\
**Post date:** [January 8, 2022, 9:20am UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/36 "2022-01-08T09:20:39Z")

</div>

@Euler I was facing the same issue too on Windows and rasa 3.0.2, I managed to resolve it by using the following sanic version. pip install sanic==21.6.2 . I can confirm it now works. you should try it all the best .

 ![windowswebchat](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/3/0/309a53c558fa394c41cb33aae1603ba198361549.png)

---

<div class="post-metadata">

**Author:** ![Euler](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Euler](https://forum.rasa.com/u/Euler)\
**Post date:** [January 10, 2022, 12:47pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/37 "2022-01-10T12:47:40Z")

</div>

@tinayemakoni, can you forward me your package list: pip freeze \> requirement.txt

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [January 10, 2022, 12:50pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/38 "2022-01-10T12:50:46Z")

</div>

@Euler please see this: [TypeError on Rasa 3.0 'NoneType' object is not callable - #25 by tinayemakoni](http://forum.rasa.com/t/typeerror-on-rasa-3-0-nonetype-object-is-not-callable/50360/25)

---

<div class="post-metadata">

**Author:** ![Euler](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Euler](https://forum.rasa.com/u/Euler)\
**Post date:** [January 10, 2022, 2:08pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/39 "2022-01-10T14:08:41Z")

</div>

@nik202, Here is my set of packages.

[requirements\_python3\_8\_10\_\_Rasa\_3\_0\_2.txt](https://forum.rasa.com/uploads/short-url/iEu7n1neAY9BRMhBzjNbkS27KCf.txt) (3.5 KB)

---

<div class="post-metadata">

**Author:** ![Euler](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Euler](https://forum.rasa.com/u/Euler)\
**Post date:** [January 10, 2022, 2:11pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/40 "2022-01-10T14:11:21Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/3/2/3221b3d7ee4cb78ffb08bda00056443ee285d98f.png)

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [January 10, 2022, 4:14pm UTC](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061/41 "2022-01-10T16:14:57Z")

</div>

@Euler have you seen the tinayemakoni requirement.txt file from the above mention thread and tried updated the version mentioned?

[Previous page](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061.md?page=1)

[Next page](https://forum.rasa.com/t/rasa-3-0-error-socket-io/50061.md?page=3)
