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.
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>
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.
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.
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: