profile
viewpoint

Ask questionsWebsocket handshake

Describe the bug When deploying the master branch of chatwoot i'm getting the following error in the console:

WebSocket connection to 'wss://xxx.com' failed: Error during WebSocket handshake: Unexpected response code: 404
WebSocket connection to 'wss://xxx.com/cable' failed: Error in connection establishment: net::ERR_ADDRESS_UNREACHABLE

error points to action_cable.js and the following function:

Connection.prototype.open = function open() {
      if (this.isActive()) {
        logger.log("Attempted to open WebSocket, but existing socket is " + this.getState());
        return false;
      } else {
        logger.log("Opening WebSocket, current state is " + this.getState() + ", subprotocols: " + protocols);

        if (this.webSocket) {
          this.uninstallEventHandlers();
        }

        this.webSocket = new adapters.WebSocket(this.consumer.url, protocols);
        this.installEventHandlers();
        this.monitor.start();
        return true;
      }
    };

specifically pointing to this line:

 this.webSocket = new adapters.WebSocket(this.consumer.url, protocols);

I believe this results in my having to refresh the page on the inbox side to receive the message and then also refresh the page on the client side to receive agent messages. Additionally, I cannot see from the client side that the agent is online.

The script is embedded within the body tag.

Please advise

chatwoot/chatwoot

Answer questions caseyjhol

@sojan-official Thanks for the quick response - email sent.

useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List