Websocket Connection Failed

We are using this documentation to deploy default jitsi in kubernetes.

But I am getting this error -
​ WebSocket connection to ‘wss://jitsi.tatamd.com/xmpp-websocket?room=cleanclimatespriceopposite’ failed:

2022-09-15T14:05:11.199Z [JitsiMeetJS.js] <Object.getGlobalOnErrorHandler>: UnhandledError: Strophe: Websocket error [object Event] Script: null Line: null Column: null StackTrace: Error: Strophe: Websocket error [object Event]
at Br.ot.Strophe.log (https://jitsi.tatamd.com/libs/lib-jitsi-meet.min.js?v=5818:2:353706)
at Object.error (https://jitsi.tatamd.com/libs/lib-jitsi-meet.min.js?v=5818:2:601549)
at N.Websocket._onError (https://jitsi.tatamd.com/libs/lib-jitsi-meet.min.js?v=5818:2:641022)

Logger.js:154 2022-09-15T14:05:11.201Z [modules/xmpp/strophe.util.js] <Br.ot.Strophe.log>: Strophe: Websocket error [object Event]

2022-09-15T14:05:11.202Z [modules/xmpp/xmpp.js] <Br.connectionHandler>: (TIME) Strophe connfail[The WebSocket connection could not be established or was disconnected.]: 2050.9000000059605
Logger.js:154 2022-09-15T14:05:11.204Z [modules/xmpp/xmpp.js] <Br.connectionHandler>: (TIME) Strophe disconnected: 2052.4000000059605
Logger.js:154 2022-09-15T14:05:11.205Z [modules/statistics/statistics.js] <$n.sendAnalyticsAndLog>: {“type”:“operational”,“action”:“connection.failed”,“attributes”:{“error_type”:“connection.otherError”,“error_message”:“The WebSocket connection could not be established or was disconnected.”,“suspend_time”:0,“time_since_last_success”:null}}
app.bundle.min.js?v=5818:138 2022-09-15T14:05:11.206Z [connection.js] <r.o>: CONNECTION FAILED: connection.otherError

I am not able to understand why this error is coming.
can someone please help me to understand and resolve this error ?

I am not familiar with the k8s setup, please note it’s community maintained.

The error above means the XMPP WS connection fails to be established. Look into your ingress and see if it gets proxied correctly to the prosody container.

1 Like

Tried to climb here and had the same problem.

That websocket is related to just env vars.

check this → XMPP_BOSH_URL_BASE and see where it is pointing.
there might be a port issue.

1 Like