LiveChat “Failed to execute ‘send’ on ‘WebSocket’: Still in CONNECTING state.”

Hi
I have problems working with LiveChat.
When opening http://domain.test.ru:3000/livechat the dialog starts , but the messages are updated only after the page is refreshed (F5) and the error constantly occurs : “An attempt was made to use an object that is not, or is no longer, usable”

Mozilla firefox:

An error occurs in Chrome when sending a message : “Failed to execute ‘send’ on ‘WebSocket’: Still in CONNECTING state.”

Please help me solve this problem

Server Setup Information

  • Version of Rocket.Chat Server: 3.7.1
  • Operating System: Ubuntu Server 20.04.1 LTS
  • Deployment Method: etc
  • Number of Running Instances: 1
  • DB Replicaset Oplog: ???
  • NodeJS Version: v12.14.0
  • MongoDB Version: v4.0.20
  • Proxy: nginx
  • Firewalls involved: N/A
1 Like

LiveChat uses invalid links with extra “/”

For example : http://domain.test.ru:3000//avatar/test1

I Don’t know where to fix it.

Hello,

I have the same problem.

In Chrome I get the error with the WebSocket:

  • Uncaught (in promise) DOMException: Failed to execute ‘send’ on ‘WebSocket’: Still in CONNECTING state.
  • WebSocket connection to ‘wss://***//websocket’ failed: Error during WebSocket handshake: Unexpected response code: 502

In Firefox I get:

  • Uncaught (in promise) DOMException: An attempt was made to use an object that is not, or is no longer, usable Rocket.Chat.js.SDK.chunk.77365.js:1
  • Uncaught (in promise) TypeError: e.data is null

Please help us to solve this. Thank you.

Server Setup Information

  • Version of Rocket.Chat Server: 3.5.2
  • NodeJS Version: v12.16.1
  • MongoDB Version: v4.0.19
  • Proxy: nginx

Hi! Try to remove the last slash from the link on the general tab.

1 Like

Thank You !
Работает!!!