Mock server is broken

The latest mock server posted in Zoom RTMS Announcements on Feb 27 (zip md5 = bc11e595e893872c14526431fad67b25) is slightly broken at the moment. When starting a video call, the test client errors out with a 404 when making a websocket request to the media server. As far as I can tell, the media server’s media endpoint is not listening for any upgrade requests. Instead, the media server’s handshake endpoint is listening to and handling upgrade requests for media.

Until a fix is posted, here’s a patch folks can apply to server/handlers/signalingHandler.js in the meantime:

@@ -86,10 +86,10 @@ class SignalingHandler {
             const response = {
                 media_server: {
                     server_urls: {
-                        audio: `ws://${CONFIG.HOST}:${CONFIG.MEDIA_PORT}${CONFIG.ENDPOINTS.AUDIO}`,
-                        video: `ws://${CONFIG.HOST}:${CONFIG.MEDIA_PORT}${CONFIG.ENDPOINTS.VIDEO}`,
-                        transcript: `ws://${CONFIG.HOST}:${CONFIG.MEDIA_PORT}${CONFIG.ENDPOINTS.TRANSCRIPT}`,
-                        all: `ws://${CONFIG.HOST}:${CONFIG.MEDIA_PORT}${CONFIG.ENDPOINTS.ALL}`,
+                        audio: `ws://${CONFIG.HOST}:${CONFIG.HANDSHAKE_PORT}${CONFIG.ENDPOINTS.AUDIO}`,
+                        video: `ws://${CONFIG.HOST}:${CONFIG.HANDSHAKE_PORT}${CONFIG.ENDPOINTS.VIDEO}`,
+                        transcript: `ws://${CONFIG.HOST}:${CONFIG.HANDSHAKE_PORT}${CONFIG.ENDPOINTS.TRANSCRIPT}`,
+                        all: `ws://${CONFIG.HOST}:${CONFIG.HANDSHAKE_PORT}${CONFIG.ENDPOINTS.ALL}`,
                     },
                     srtp_keys: this.generateSRTPKeys(),
                 }

2 Likes

Thank you for bringing this to our notice. This has been fixed, will share the new version in our channel

1 Like