# Rasa-webchat with Rasa 2.7 and rasa\_sdk 2.7

**URL:** <https://forum.rasa.com/t/rasa-webchat-with-rasa-2-7-and-rasa-sdk-2-7/45847>\
**Category:** Rasa Open Source\
**Created:** [July 17, 2021, 3:20pm UTC](https://forum.rasa.com/t/rasa-webchat-with-rasa-2-7-and-rasa-sdk-2-7/45847 "2021-07-17T15:20:55Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![eaofcc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/eaofcc/32/16106_2.png) [@eaofcc](https://forum.rasa.com/u/eaofcc)\
**Post date:** [July 17, 2021, 3:20pm UTC](https://forum.rasa.com/t/rasa-webchat-with-rasa-2-7-and-rasa-sdk-2-7/45847/1 "2021-07-17T15:20:55Z")

</div>

Hello Everyone, Quick question. Has anyone gotten Rasa 2.7 and rasa\_sdk 2.7 to work with rasa-webchat? I keep getting the Client socketio error when I startup Rasa with the following command: rasa run -m models --enable-api --cors “\*”

My installation is strait up with no modifications. And the webchat works from Rasa 2.3 and rasa\_sdk 2.3.1 on down but not beyond that version. Again, has anyone successfully gotten 2.7 to work with rasa-webchat. Not looking for a hack. Hoping there’s a straight forward solution that I have missed, after days of searching.

Thanks

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [July 17, 2021, 3:25pm UTC](https://forum.rasa.com/t/rasa-webchat-with-rasa-2-7-and-rasa-sdk-2-7/45847/2 "2021-07-17T15:25:52Z")

</div>

Hi @eaofcc ,

I’m not quite sure, but I’d recommend to first check the [socket-io compatibility table](https://flask-socketio.readthedocs.io/en/latest/intro.html#version-compatibility) and to countercheck every tool used (Rasa OSS, SDK, …) if everything fits together.

Kind regards  
Julian

---

<div class="post-metadata">

**Author:** ![eaofcc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/eaofcc/32/16106_2.png) [@eaofcc](https://forum.rasa.com/u/eaofcc)\
**Post date:** [July 17, 2021, 3:34pm UTC](https://forum.rasa.com/t/rasa-webchat-with-rasa-2-7-and-rasa-sdk-2-7/45847/3 "2021-07-17T15:34:24Z")

</div>

Thanks! I actually did just that. So Rasa 2.7 has python-socketio 4.4, because of some issues with socketio compatibility. Not sure how to confirm the version that rasa-webchat is running. If I knew that, and how to change it if it’s not javascript socketio 3.x or 4.x, I’d be able to potentially solve the issue.

Best, Ethan Anthony

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [July 17, 2021, 3:40pm UTC](https://forum.rasa.com/t/rasa-webchat-with-rasa-2-7-and-rasa-sdk-2-7/45847/4 "2021-07-17T15:40:44Z")

</div>

Hi @eaofcc ,

looking at this:

```auto
{
  "name": "rasa-webchat",
  "version": "1.0.1",
  "description": "Chat web widget for React apps and Rasa Core chatbots",
  "module": "module/index.js",
  "main": "lib/index.js",
  "repository": "git@https://github.com/botfront/rasa-webchat.git",
  "author": "",
  "license": "Apache-2.0",
  "scripts": {
    "dev": "webpack-dev-server --config webpack.dev.js",
    "build": "webpack --config webpack.prod.js -p",
    "test": "jest",
    "prepare": "npm run build",
    "release": "standard-version"
  },
  "keywords": [
    "react",
    "chat",
    "widget",
    "javascript"
  ],
  "dependencies": {
    "@popperjs/core": "^2.4.0",
    "@stomp/stompjs": "^5.4.2",
    "html-webpack-plugin": "^3.2.0",
    "immutable": "^3.8.2",
    "object-hash": "^1.1.5",
    "prop-types": "^15.7.2",
    "react-immutable-proptypes": "^2.2.0",
    "react-markdown": "^4.2.2",
    "react-popper": "^2.2.3",
    "react-redux": "^7.1.3",
    "react-slick": "^0.26.1",
    "react-textarea-autosize": "^7.1.2",
    "redux": "^4.0.5",
    "slick-carousel": "^1.8.1",
    "socket.io": "^3.1.2",
    "socket.io-client": "^3.1.2",
    "sockjs-client": "^1.4.0"
  },

```

This seems to be actually the problem! Can’t you simply clone the chat and run: `npm update socket.io-client` and the io likewise?

Kind regards

---

<div class="post-metadata">

**Author:** ![eaofcc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/eaofcc/32/16106_2.png) [@eaofcc](https://forum.rasa.com/u/eaofcc)\
**Post date:** [July 17, 2021, 4:35pm UTC](https://forum.rasa.com/t/rasa-webchat-with-rasa-2-7-and-rasa-sdk-2-7/45847/5 "2021-07-17T16:35:17Z")

</div>

That’s a great idea. So I cloned the package and ran npm update. The result was tons of errors and difficult to resolve conflicts.

---

<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 17, 2021, 5:38pm UTC](https://forum.rasa.com/t/rasa-webchat-with-rasa-2-7-and-rasa-sdk-2-7/45847/6 "2021-07-17T17:38:38Z")

</div>

@eaofcc you just want to render your chatbot to rasawebchat(botfront) so that you can see the chatbot widget? Right

---

<div class="post-metadata">

**Author:** ![eaofcc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/eaofcc/32/16106_2.png) [@eaofcc](https://forum.rasa.com/u/eaofcc)\
**Post date:** [July 17, 2021, 6:45pm UTC](https://forum.rasa.com/t/rasa-webchat-with-rasa-2-7-and-rasa-sdk-2-7/45847/7 "2021-07-17T18:45:53Z")

</div>

Yes. That’s it. While using Rasa 2.7 and rasa\_sdk 2.7

---

<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 17, 2021, 7:48pm UTC](https://forum.rasa.com/t/rasa-webchat-with-rasa-2-7-and-rasa-sdk-2-7/45847/9 "2021-07-17T19:48:15Z")

</div>

@eaofcc Please try to change from 1.0.0 to 1.01

```
 (e.src =
> "https://cdn.jsdelivr.net/npm/rasa-webchat@1.0.1/lib/index.js"),

```

Version 1.0.1 of the rasa webchat is made to work with version 2.3.x and 2.4.x of rasa and beyond. Use 1.0.0 for other rasa versions.

⚠ We recommend adding a version tag to prevent breaking changes from major versions, e.g for version 1.0.0 [https://cdn.jsdelivr.net/npm/rasa-webchat@1.0.0/lib/index.js](https://cdn.jsdelivr.net/npm/rasa-webchat@1.0.0/lib/index.js), however this will not work with versions below 1.0.0. If you do not specify a version, you will get served the latest available version of the rasa-webchat.

Please ref: [GitHub - botfront/rasa-webchat: A feature-rich chat widget for Rasa and Botfront](https://github.com/botfront/rasa-webchat)

---

<div class="post-metadata">

**Author:** ![eaofcc](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/eaofcc/32/16106_2.png) [@eaofcc](https://forum.rasa.com/u/eaofcc)\
**Post date:** [July 17, 2021, 7:50pm UTC](https://forum.rasa.com/t/rasa-webchat-with-rasa-2-7-and-rasa-sdk-2-7/45847/10 "2021-07-17T19:50:09Z")

</div>

This works PERFECTLY! Everyone should know this. I spent so much time struggling with this issue. 1.0.0 is for anything below version 2.3. THANKS!

---

<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 17, 2021, 7:50pm UTC](https://forum.rasa.com/t/rasa-webchat-with-rasa-2-7-and-rasa-sdk-2-7/45847/11 "2021-07-17T19:50:57Z")

</div>

@eaofcc Please do check this thread for more information of customisation of rasa web-chat.

> [@Integrating Chatbot-Widget ((https://github.com/JiteshGaikwad/Chatbot-Widget) ) to a Wordpress site?](http://forum.rasa.com/t/integrating-chatbot-widget-https-github-com-jiteshgaikwad-chatbot-widget-to-a-wordpress-site/44965/20):
>
> @sleekmike Next time please make new thread for your record. Thanks.

---

<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 17, 2021, 8:27pm UTC](https://forum.rasa.com/t/rasa-webchat-with-rasa-2-7-and-rasa-sdk-2-7/45847/12 "2021-07-17T20:27:35Z")

</div>

@eaofcc Happy to help you. Good Luck with your project!
