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://' failed: Error during WebSocket handshake: Unexpected response code: 404
WebSocket connection to 'wss://' failed: Error in connection establishment: net::ERR_ADDRESS_UNREACHABLE

error points to action_cable.js and the following function: = 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.webSocket = new adapters.WebSocket(this.consumer.url, protocols);
        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


Answer questions caseyjhol

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


Related questions

No questions were found.
Github User Rank List