cancel
Showing results for 
Search instead for 
Did you mean: 
The Zoom Community will be placed in read-only mode January 9th, 2026 through January 22nd, 2026 to deliver you a new and improved community experience!

The community will still be accessible, however, the creation of any new discussions or replies will be temporarily unavailable. We appreciate your patience during this time.

Zoom Web SDK Embedded – Second Join Fails with “TypeError: Cannot read properties of undefined (read

Karventhan
Newcomer
Newcomer

Hi Team,

I am using Zoom Meeting SDK (Embedded) version 3.13.2 inside a React/Next.js widget.
The first meeting joins correctly, but when I leave the meeting and try to join again, I get this error:

Error:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'caps')
at nP.getLocalRecordingPermissionUserList

This only happens on the second join attempt, not the first.

What I am doing when leaving the meeting:

I call:

await client.leaveMeeting();
client.off('*');
client.destroyClient();

Then I also recreate the container div:

if (meetingSDKElementRef.current) {
meetingSDKElementRef.current.innerHTML = '';
const newDiv = document.createElement('div');
meetingSDKElementRef.current.replaceWith(newDiv);
meetingSDKElementRef.current = newDiv;
}

What I am doing when joining again:

await client.init({
zoomAppRoot: meetingSDKElementRef.current,
language: "en-US",
patchJsMedia: true,
leaveOnPageUnload: true,
});

await client.join({
signature,
sdkKey,
meetingNumber,
password,
userName,
userEmail,
});

Problem:

After the first successful join, leave, and trying to join again, I get:

TypeError: Cannot read properties of undefined (reading 'caps')

The error comes from:

getLocalRecordingPermissionUserList then nP.getLocalRecordingPermissionUserList

What I have tried:

- Resetting DOM container
- Calling destroyClient
- Calling client.off('*')
- Adding delay before init
- Re-creating a fresh container div
- Clearing React state and refs

But the second join still fails.

Can you please assist?

1 REPLY 1

Ray_Harwood
Community Champion | Customer
Community Champion | Customer

This is a question more appropriate for the Developers Forum at https://devforum.zoom.us/


Ray -- check out the GoodClix website.