botfront / rasa-webchat

A feature-rich chat widget for Rasa and Botfront
https://botfront.io/rasa
Apache License 2.0
962 stars 497 forks source link

Socketio timeout #290

Closed divyamani1 closed 3 years ago

divyamani1 commented 4 years ago

I have deployed RasaX on a server and I am trying to use rasa-webchat using socketio channel. But, I am getting the following error. 2020-09-13-102308_1366x768_scrot

It connects sometimes and the chat widget shows for a few seconds before there is another timeout. I can use the server fine and can use the rest channel just fine. I'm only having issues with socketio. I am using the following code snippet:

<div id="webchat"></div>
<script src="https://cdn.jsdelivr.net/npm/rasa-webchat@0.11.5/lib/index.min.js"></script>
// you can add a version tag if you need, e.g for version 0.11.5 https://cdn.jsdelivr.net/npm/rasa-webchat@0.11.5/lib/index.min.js
<script>
  WebChat.default.init({
    selector: "#webchat",
    initPayload: "/greet",
    customData: {"language": "en"}, // arbitrary custom data. Stay minimal as this will be added to the socket
    socketUrl: "http://my-server/",
    socketPath: "/socket.io/",
    title: "chatbot",
    subtitle: "Subtitle",
    params: {"storage": "session"},
  })
</script>
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.