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

The client is using an unsupported version of the Socket.IO or Engine.IO #352

Closed gdet closed 3 years ago

gdet commented 3 years ago

Hello,

I am trying to connect your webchat with my rasa chatbot. I have installed the latest version of rasa and when I am trying to access it from the webpage the page is blank and in the server side I can see this error:

     The client is using an unsupported version of the Socket.IO or Engine.IO protocols (further occurrences of this error will be logged with level INFO)

Both the page and the rasa endpoint are on the same server. And I am calling rasa with this command:

    rasa run -m models --enable-api --cors "*" --debug

Also in the webpage I have this error

 Error: xhr poll error. 

What should I do?

Thank you

Icesource commented 3 years ago

I also had this problem. So did you build your own source code instead of using CDN or NPM directly?

Icesource commented 3 years ago

Okay, author has solved this problem on Apr 16. This is just because the sock.io version is incompatible.

gdet commented 3 years ago

Okay thank you! So we just download the latest code?

Icesource commented 3 years ago

Okay thank you! So we just download the latest code?

Yes. Keep the code and rasa latest and everything is gonna be ok.

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.

ttamg commented 3 years ago

For anyone finding this now. I found that the CDN version 1.01 was working fine now with socket.io and Rasa.

"https://cdn.jsdelivr.net/npm/rasa-webchat@1.0.1/lib/index.js"