# Issue with Rasa Core and rasa-webchat

**URL:** <https://forum.rasa.com/t/issue-with-rasa-core-and-rasa-webchat/39788>\
**Category:** Rasa Open Source\
**Created:** [February 3, 2021, 12:22pm UTC](https://forum.rasa.com/t/issue-with-rasa-core-and-rasa-webchat/39788 "2021-02-03T12:22:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomimartin01](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tomimartin01/32/12712_2.png) [@tomimartin01](https://forum.rasa.com/u/tomimartin01)\
**Post date:** [February 3, 2021, 12:22pm UTC](https://forum.rasa.com/t/issue-with-rasa-core-and-rasa-webchat/39788/1 "2021-02-03T12:22:36Z")

</div>

Hi community,

I’ve integrated my Rasa Open Source project with the [rasa-webchat](https://github.com/botfront/rasa-webchat) in my own website and it works fine for months.

Now I’m facing an issue, the socket of the Core disconnects in the middle of a conversation and it reconnects with a new id\_sender a few seconds later but the bot have lost all the context of the conversation. This problem not affect all the conversations, it happens occasionally.

I’m using Rasa 1.10.20 and Ubuntu 18.04.

Thanks in advanced!

---

<div class="post-metadata">

**Author:** ![Juste](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juste/32/15_2.png) [@Juste](https://forum.rasa.com/u/Juste)\
**Post date:** [February 3, 2021, 2:20pm UTC](https://forum.rasa.com/t/issue-with-rasa-core-and-rasa-webchat/39788/2 "2021-02-03T14:20:14Z")

</div>

HI @tomimartin01. How did you deploy your assistant? Can you share the specs of your server?

---

<div class="post-metadata">

**Author:** ![tomimartin01](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tomimartin01/32/12712_2.png) [@tomimartin01](https://forum.rasa.com/u/tomimartin01)\
**Post date:** [February 3, 2021, 3:59pm UTC](https://forum.rasa.com/t/issue-with-rasa-core-and-rasa-webchat/39788/3 "2021-02-03T15:59:16Z")

</div>

Hi @Juste. I deployed my assistant with websocket. Here is the code in my [credentials.yml](https://forum.rasa.com/uploads/short-url/mmiMsDbJHp1QTnREMqZOeUHAmFq.yml) (164 Bytes)

This is the way I run the server, I’m running all locally. :

`rasa runvv --port 5004 --cors "*" --enable-api --credentials credentials.yml`

This is how I run the custom action server

`rasa run actions --port 5056`

This is the [logs.txt](https://forum.rasa.com/uploads/short-url/9v47ipZQh9sEcgRJ9bWaTpfE2Bt.txt) (37.4 KB) . Please go to line 344. As you can see, all works fine, until line 344. In the middle of the conversation the websocket disconnects and then reconnects with another id. In the browser, you can notice that the page refreshes it.

---

<div class="post-metadata">

**Author:** ![Juste](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juste/32/15_2.png) [@Juste](https://forum.rasa.com/u/Juste)\
**Post date:** [February 3, 2021, 5:54pm UTC](https://forum.rasa.com/t/issue-with-rasa-core-and-rasa-webchat/39788/4 "2021-02-03T17:54:33Z")

</div>

Hey @tomimartin01. I can see that your custom action is not working properly. I am not sure if this is what’s breaking the Rasa server, but I’d try fixing that issue first.

---

<div class="post-metadata">

**Author:** ![tomimartin01](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tomimartin01/32/12712_2.png) [@tomimartin01](https://forum.rasa.com/u/tomimartin01)\
**Post date:** [February 3, 2021, 7:30pm UTC](https://forum.rasa.com/t/issue-with-rasa-core-and-rasa-webchat/39788/5 "2021-02-03T19:30:57Z")

</div>

Thanks @Juste! I believe that the Rasa server crashes the action server, that’s why I looked for help. But as you recommended, first I am fixing that bug. Let me know if someone solves the Rasa server issue.

Also I’m trying to develop a custom connector for do some animation in the frontend while the assistant is processing but I don’t have so much information. I’d like to see same examples.

Thanks again for your help! @Juste
