Meeting SDK Type and Version
“@zoom/meetingsdk”: “^3.1.2”,
Description
In both the “standard web” and react versions of the Meeting SDK it seems to throw uncaught exceptions quite often. These uncaught exceptions are things like “on hold” when the user is waiting to join a meeting. There are others as well but right now when these are thrown (in development) react development experience sees a full screen error.
Is there a way to capture these exceptions gracefully?
Error?
“IMPROPER_MEETING_STATE”: “closed”
“IMPROPER_MEETING_STATE”: “on hold”
etc…
Troubleshooting Routes
Wrapped the init and join calls in a try/catch.
Wrapped the entire component (react) with an error boundary component.
Added the error prop to the join call.
None of these paths cleared up the unhandled exceptions originating from Meeting SDK.
How To Reproduce
Using the stock React starter app but surrounding the calls with try/catch instead of the .catch (basically the same).
Join a meeting and observe how the exceptions are thrown, and in a development environment we see full screen errors and disruptive behavior.
try {
await client.init({
zoomAppRoot: meetingSDKElement as HTMLDivElement,
language: 'en-US',
patchJsMedia: true,
debug: true,
});
await client.join({
signature: signature,
sdkKey: sdkKey,
meetingNumber,
password,
userName: userName,
userEmail: email,
tk: registrantToken,
zak: zakToken,
success: () => {
console.log('join meeting success');
},
error: (error: Error) => {
console.log('err', error);
},
});
} catch (err) {
console.error(err);
}