# While connecting rasa3 chatbot with website using socketio getting error:'NoneType' object is not callable

**URL:** <https://forum.rasa.com/t/while-connecting-rasa3-chatbot-with-website-using-socketio-getting-error-nonetype-object-is-not-callable/53770>\
**Category:** Rasa Open Source\
**Created:** [June 15, 2022, 6:17am UTC](https://forum.rasa.com/t/while-connecting-rasa3-chatbot-with-website-using-socketio-getting-error-nonetype-object-is-not-callable/53770 "2022-06-15T06:17:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinaysinghdigitup](https://avatars.discourse-cdn.com/v4/letter/v/13edae/32.png) [@vinaysinghdigitup](https://forum.rasa.com/u/vinaysinghdigitup)\
**Post date:** [June 15, 2022, 6:17am UTC](https://forum.rasa.com/t/while-connecting-rasa3-chatbot-with-website-using-socketio-getting-error-nonetype-object-is-not-callable/53770/1 "2022-06-15T06:17:55Z")

</div>

Hi, I am facing an issue with socket io in rasa 3. I have gone through previous topic as well on the same issue. but after installing the packages as mentioned in the previous topic, sanic version said to be incompatible and even to server is not started.

packages and versions: rasa 3.1.0 rasa-sdk 3.1.1 python-engineio 4.3.0 python-Levenshtein 0.12.2 python-socketio 5.5.0 sanic 21.12.1 Sanic-Cors 2.0.1 sanic-jwt 1.7.0 sanic-plugin-toolkit 1.2.0 Sanic-Plugins-Framework 0.8.2 sanic-routing 0.7.2 Operation System: windows 10 error:

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

webchat snippet:

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

Please help me with the compatible package issue. If there is any way or documentation for rasa 3.1.0 for compatible versions of packages like [python-socket.io](http://python-socket.io) and [engine.io](http://engine.io). Any help is appreciated. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![wyq](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/wyq/32/20125_2.png) [@wyq](https://forum.rasa.com/u/wyq)\
**Post date:** [July 3, 2022, 9:14pm UTC](https://forum.rasa.com/t/while-connecting-rasa3-chatbot-with-website-using-socketio-getting-error-nonetype-object-is-not-callable/53770/2 "2022-07-03T21:14:28Z")

</div>

I am facing the same issue. Does anyone know how to solve it? @nik202

---

<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:** [July 3, 2022, 10:44pm UTC](https://forum.rasa.com/t/while-connecting-rasa3-chatbot-with-website-using-socketio-getting-error-nonetype-object-is-not-callable/53770/3 "2022-07-03T22:44:28Z")

</div>

@wyq share rasa --version and Code snippet, please.

---

<div class="post-metadata">

**Author:** ![vinaysinghdigitup](https://avatars.discourse-cdn.com/v4/letter/v/13edae/32.png) [@vinaysinghdigitup](https://forum.rasa.com/u/vinaysinghdigitup)\
**Post date:** [July 4, 2022, 4:27am UTC](https://forum.rasa.com/t/while-connecting-rasa3-chatbot-with-website-using-socketio-getting-error-nonetype-object-is-not-callable/53770/4 "2022-07-04T04:27:03Z")

</div>

Rasa and dependencies versions:

![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/4/0/407dca461e00d1ecb63eac29f35fa19206ac50ec.png) ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/5/1/514c65c806428a07548f3e80763627a0aedd1aa3.png) ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/4/6/461b65dd18785295ce2b94af64e22c563130f18b.png)

webchat snippet 1:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/8/f/8f9466c6f77fdb22f5b1a411248b0146300d44a2.png)Socket io credentials:

![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/3/8/38bebc8f38fdc0ac694a878e91dc8e9eca8033d7.png)

webchat snippet 2:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/0/2/0276b2f865da59dc5870e7cf63762473630af79c.png)I have tried both the code snippets to run but same “None type” error is displayed as mentioned in previous post. Any help is appreciated. Thanks

---

<div class="post-metadata">

**Author:** ![bharath-madduri](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/bharath-madduri/32/18010_2.png) [@bharath-madduri](https://forum.rasa.com/u/bharath-madduri)\
**Post date:** [July 4, 2022, 7:02am UTC](https://forum.rasa.com/t/while-connecting-rasa3-chatbot-with-website-using-socketio-getting-error-nonetype-object-is-not-callable/53770/5 "2022-07-04T07:02:12Z")

</div>

commands you are using to start the rasa project?

---

<div class="post-metadata">

**Author:** ![vinaysinghdigitup](https://avatars.discourse-cdn.com/v4/letter/v/13edae/32.png) [@vinaysinghdigitup](https://forum.rasa.com/u/vinaysinghdigitup)\
**Post date:** [July 4, 2022, 7:29am UTC](https://forum.rasa.com/t/while-connecting-rasa3-chatbot-with-website-using-socketio-getting-error-nonetype-object-is-not-callable/53770/6 "2022-07-04T07:29:23Z")

</div>

rasa run --cors “\*” --debug

---

<div class="post-metadata">

**Author:** ![wyq](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/wyq/32/20125_2.png) [@wyq](https://forum.rasa.com/u/wyq)\
**Post date:** [July 4, 2022, 10:02pm UTC](https://forum.rasa.com/t/while-connecting-rasa3-chatbot-with-website-using-socketio-getting-error-nonetype-object-is-not-callable/53770/7 "2022-07-04T22:02:34Z")

</div>

Error message: 2022-07-04 23:44:29 INFO rasa.core.processor - Loading model models\kpibot\_selflearning\_main\_menu.tar.gz… 2022-07-04 23:44:33 INFO rasa.nlu.utils.spacy\_utils - Trying to load SpaCy model with name ‘en\_core\_web\_md’. 2022-07-04 23:44:40 INFO rasa.nlu.utils.spacy\_utils - Trying to load SpaCy model with name ‘en\_core\_web\_md’. [2022-07-04 23:51:27 +0200] [29524] [ERROR] Exception occurred while handling uri: ‘ws://localhost:5005/socket.io/?EIO=4&transport=websocket&sid=EhKB87Fg6JR9J8bEAAAC’ Traceback (most recent call last): File “handle\_request”, line 125, in handle\_request class Sanic(BaseSanic, metaclass=TouchUpMeta): sanic.exceptions.ServerError: Invalid response type None (need HTTPResponse)

Version: Rasa Version : 3.1.0 Minimum Compatible Version: 3.0.0 Rasa SDK Version : 3.1.1 Rasa X Version : None Python Version : 3.7.3

sanic 21.12.1 Sanic-Cors 2.0.1 sanic-jwt 1.7.0 sanic-plugin-toolkit 1.2.1 sanic-routing 0.7.2

---

<div class="post-metadata">

**Author:** ![wyq](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/wyq/32/20125_2.png) [@wyq](https://forum.rasa.com/u/wyq)\
**Post date:** [July 4, 2022, 10:09pm UTC](https://forum.rasa.com/t/while-connecting-rasa3-chatbot-with-website-using-socketio-getting-error-nonetype-object-is-not-callable/53770/8 "2022-07-04T22:09:22Z")

</div>

![Unbenannt](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/3/c/3ccc17e537642a82f3a79580306afdf26a09ff4c.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:** [July 4, 2022, 10:20pm UTC](https://forum.rasa.com/t/while-connecting-rasa3-chatbot-with-website-using-socketio-getting-error-nonetype-object-is-not-callable/53770/9 "2022-07-04T22:20:03Z")

</div>

@wyq I have posted the solution in some of my post related to above error, can you please find that post? I not remember the thread link. Hint it have chatbot screenshot and all versions mentioned for sanic as it’s related to Sanic version. Thanks

---

<div class="post-metadata">

**Author:** ![vinaysinghdigitup](https://avatars.discourse-cdn.com/v4/letter/v/13edae/32.png) [@vinaysinghdigitup](https://forum.rasa.com/u/vinaysinghdigitup)\
**Post date:** [July 5, 2022, 4:01am UTC](https://forum.rasa.com/t/while-connecting-rasa3-chatbot-with-website-using-socketio-getting-error-nonetype-object-is-not-callable/53770/10 "2022-07-05T04:01:15Z")

</div>

Hi Nik thanks for your time, I have have gone through all the previous solutions you provided in some threads. I had checked with the sanic and python socket io version suggested. but still facing problem.
