Description
We are developing an application that uses the Zoom Video SDK for Web to facilitate video conferencing between multiple parties that rotate through pre-determined rooms. That being users don’t manually join or leave rooms but rather they are forced into and out of rooms programmatically and in sync. Users are moved from room to room at regular intervals.
We are having a problem with our application whereby we are getting ERR_NAME_NOT_RESOLVED errors in the console when users should be joining one of their predetermined rooms (first room in a given rotation). This problem happens sporadically when calling the client.join(topic, token, userName, password) SDK method.
It appears to be a problem while the SDK is attempting to fetch additional JavaScript resources from zoom’s CDN.
When it happens, since the user should be auto-joined into a predetermined roomed they are not and instead are stuck in limbo. Obviously we can’t have our application function in this manner.
Browser Console Error
Failed to load resource: net::ERR_NAME_NOT_RESOLVED (dmogdx0jrul3u.cloudf…audio_simd.min.js:1)
Uncaught (in promise) TypeError: Failed to fetch (js_media.min.js:1)
Failed to load resource: net::ERR_NAME_NOT_RESOLVED (dmogdx0jrul3u.cloudf…aring_simd.min.js:1)
Failed to load resource: net::ERR_NAME_NOT_RESOLVED (dmogdx0jrul3u.cloudf…video_simd.min.js:1)
Uncaught (in promise) TypeError: Failed to fetch (js_media.min.js:1)
Uncaught (in promise) TypeError: Failed to fetch (js_media.min.js:1)
…
[we have a screen shot with the full log but we get an error that we cannot embed media with this post]
Which Web Video SDK version?
1.6.0
Video SDK Code Snippets
client.join(topic, token, userName, password).then(() => {
stream = client.getMediaStream()
}).catch((error) => {
console.log(error)
})
Additional Information
Our application is a semi automated exam platform whereby users sign in ahead of a predetermined start time. It is possible users will be online 30 minutes in advance of their start period and being connected to a room.
When a user signs on the Zoom SDK is loaded and we use the createLocalVideoTrack() and createLocalAudioTrack() functions to test the users camera, gather permissions and allow them to change their devices if required. After the user completes this step, they aren’t “joined” into their room until their scheduled start time.
It is possible they will be idle for an extended period of time before the application calls the client.join() function, which is the point when we’ve see the above ERR_NAME_NOT_RESOLVED error and the user doesn’t join their room.
We run the VideoSDK.preloadDependentAssets() function when the user first logs on in an attempt to midegate this error, but it doesn’t seem to have an effect. When client.join() is called, we see the external JS libraries loaded on the fly at that time. Not any earlier as the preloadDependentAssets() function would imply.
Troubleshooting Routes
The error happens sporadically and inside JavaScript functions/files outside of our control. Therefore we do not believe it is an issue on our end.
We were also able to find others reporting similar messages, but their threads are stale or it was reported that the errors fixed themselves:
- Experiencing significant number of ERR_NAME_NOT_RESOLVED errors
- Web SDK attempting to connect to invalid DNS names
Another troubleshooting step we’ve taken is mentioned in Additional Information whereby we try to use the preloadDependentAssets() function provided by the SDK. But that doesn’t seem to be doing anything helpful.
Device (please complete the following information):
- Device: Desktop Computer
- OS: Windows 11 Pro 10.0.22621 Build 22621
- Browser: Chrome
- Browser Version: Version 111.0.5563.65 (Official Build) (64-bit)