# Clarification on zmClient.join() error handling in Zoom Web Video SDK

**URL:** <https://devforum.zoom.us/t/clarification-on-zmclient-join-error-handling-in-zoom-web-video-sdk/136044>\
**Category:** Web\
**Created:** [August 4, 2025, 9:49am UTC](https://devforum.zoom.us/t/clarification-on-zmclient-join-error-handling-in-zoom-web-video-sdk/136044 "2025-08-04T09:49:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thong1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thong1/32/69093_2.png) [@Thong1](https://devforum.zoom.us/u/Thong1)\
**Post date:** [August 4, 2025, 9:49am UTC](https://devforum.zoom.us/t/clarification-on-zmclient-join-error-handling-in-zoom-web-video-sdk/136044/1 "2025-08-04T09:49:48Z")

</div>

### Description

- When calling `await state.zmClient.join(meetingId, token, userName, passcode);`, I would like to know what is returned if the join operation fails. Does this method throw an exception or return a specific error object?

* * *

### Browser Console Error

## No specific error at this point. I just want to confirm the error handling behavior of the `join()` method.

### Which Web Video SDK version?

Video SDK v2.2.5

* * *

### Video SDK Code Snippets

```javascript
try {
  await state.zmClient.join(meetingId, token, userName, passcode);
  console.log('Join success');
} catch (err) {
  console.error('Join failed:', err);
}

```

* * *

### Device

- Device:
- OS: Window 11
- Browser: Chrome 134.0.x

* * *

### Additional context

I would like to confirm whether the `join()` method always throws an error (e.g. for invalid token or ended meeting) or if it simply rejects the promise with a specific error message.

Thank you

---

<div class="post-metadata">

**Author:** ![ticorrian.heard](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ticorrian.heard/32/70213_2.png) [@ticorrian.heard](https://devforum.zoom.us/u/ticorrian.heard)\
**Post date:** [August 4, 2025, 7:49pm UTC](https://devforum.zoom.us/t/clarification-on-zmclient-join-error-handling-in-zoom-web-video-sdk/136044/2 "2025-08-04T19:49:22Z")

</div>

Hi @Thong1 The join() method will return a Promise\<““ | _[ExecutedFailure](https://marketplacefront.zoom.us/sdk/custom/web/interfaces/ZoomVideo.ExecutedFailure.html)_\> .

Success will return a string. Errors will be an object you will need to catch to view the contents.

More detail can be found here: [ZoomVideo | Zoom Video SDK for Web - 2.2.5](https://marketplacefront.zoom.us/sdk/custom/web/modules/ZoomVideo.html#ExecutedResult)

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [August 5, 2025, 2:46am UTC](https://devforum.zoom.us/t/clarification-on-zmclient-join-error-handling-in-zoom-web-video-sdk/136044/3 "2025-08-05T02:46:02Z")

</div>

Hi @Thong1

> if it simply rejects the promise with a specific error message

The rejected promise will include an `errorCode`. The definitions of the specific `errorCodes` can be found in this document.

> **[Video SDK - web - Error codes and troubleshooting](https://developers.zoom.us/docs/video-sdk/web/error-codes/#session-exception)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 5, 2026, 2:46am UTC](https://devforum.zoom.us/t/clarification-on-zmclient-join-error-handling-in-zoom-web-video-sdk/136044/4 "2026-08-05T02:46:10Z")

</div>

Closed on August 5, 2026, 2:46am UTC

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
