botfront / rasa-webchat

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

Transport error when rasa is deployed high availability #416

Closed repocho closed 2 years ago

repocho commented 2 years ago

With the proper configuration and launching just one replica is working fine using the rest endpoint and websockets, using socketio and botfront/rasa-webchat.

When we deploy rasa with high availability in place following the recommendations of rasa regarding the tracker store and also the lock store, it's also working well but is failing for websockets protocol using socketio.

The errors are reconnections until it's finally connected after some time (seconds... minutes, etc). The workaround is to set a sticky session to one node.

The fix I've found is to set the transports of socket.io just to "websocket" or in the reverse order of the default ones "websocket", "polling.

I'm going to create a pull request explaining the details.

Probably issue related #166

repocho commented 2 years ago

Hello,

please could someone have a look into this?

@MatthieuJnon you were involved in the #166, maybe you can help with this.

Best regards, David

stale[bot] commented 2 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.