Cannot read properties of undefined (reading 'userRole')

This error happens to me intermittently when leaving the call
Cannot read properties of undefined (reading 'userRole'), not 100% sure about the pattern yet, but it usually happens when another party is leaving the call unexpectedly

I have put .catch() on all of my zoomClient.leave() call, but still it’s still shown as uncaught error

tested on:

  • Brave browser on mac air m1, and mac pro m1

Hey @shi88.andy

Thanks for your feedback.

It might be because the user has left the session, but there are still places calling Video SDK methods, leading to failed calls. This won’t affect the functionality, and we will strengthen the API call protection in the next version.

Thanks
Vic