# Errors when joining an embedded meeting with the SDK

**URL:** <https://devforum.zoom.us/t/errors-when-joining-an-embedded-meeting-with-the-sdk/100116>\
**Category:** Web\
**Created:** [December 13, 2023, 7:04pm UTC](https://devforum.zoom.us/t/errors-when-joining-an-embedded-meeting-with-the-sdk/100116 "2023-12-13T19:04:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aubrey](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aubrey/32/21264_2.png) [@aubrey](https://devforum.zoom.us/u/aubrey)\
**Post date:** [December 13, 2023, 7:04pm UTC](https://devforum.zoom.us/t/errors-when-joining-an-embedded-meeting-with-the-sdk/100116/1 "2023-12-13T19:04:53Z")

</div>

**Description**  
I am trying to join a meeting from my web browser using the meeting SDK. When doing so, the UI pops up and I get into the meeting, but neither my audio nor my video will work, and a bunch of errors appear in the browser’s console.

My meeting has ID 84083827834.

I see here in the forum that there may be issues when running the SDK in an iframe, but it’s not in one. This is running in a React/Ionic app, and I have tried on several browsers with no luck. When I join in the Zoom app as this user with their join URL it works fine.

Whenever I click on the camera icon to start up the camera I get an error in the console like “Camera is starting,please wait.”

**Browser Console Error**

- userId is not correct
- video handle is not ready
- Camera is starting,please wait.

**Which Web Meeting SDK version?**  
2.18.2

**Meeting SDK Code Snippets**  
Creating the JWT:

```auto
      exp = 4.hours.from_now.to_i

      payload = {
        appKey: Rails.application.credentials.zoom.meeting_sdk.client_id,
        exp:,
        iat: Time.now.to_i,
        mn: webinar_registration.webinar.webinar_zoom_meeting_id,
        role: 0,
        sdkKey: Rails.application.credentials.zoom.meeting_sdk.client_id,
        tokenExp: exp,
        userName: current_user.full_name
      }

      jwt = JWT.encode(
        payload,
        Rails.application.credentials.zoom.meeting_sdk.client_secret,
        "HS256",
        { alg: "HS256", typ: "JWT" }
      )

```

And joining the meeting:

```auto
const meetingSDKElement = document.getElementById("meetingSDKElement");
if (meetingSDKElement) {
  zoomClient.init({ language: "en-US", zoomAppRoot: meetingSDKElement });
  zoomClient.join({
    meetingNumber: article.webinarZoomMeetingId,
    // password: "356415",
    sdkKey: zoomSdkKey,
    signature: response.data.webinarRegistrationCreateZoomAuth.jwt,
    tk: article.webinarRegistration.zoomRegistrationToken,
    userName: myUser?.fullName ?? ""
  });
}

```

**To Reproduce(If applicable)**  
The errors start as soon as I run the JS code to join the meeting.

**Screenshots**

 ![Screenshot 2023-12-13 at 1.40.51 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/6/361700278d64aef31a6de9f7c902770af4131cfa.jpeg)

**Troubleshooting Routes**

**Device (please complete the following information):**

- Device: Macbook Pro
- OS: macOS 14.2
- Browser: Chrome and Brave
- Browser Version: Chrome Version 120.0.6099.71

**Additional context**

---

<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:** [January 13, 2024, 5:05am UTC](https://devforum.zoom.us/t/errors-when-joining-an-embedded-meeting-with-the-sdk/100116/2 "2024-01-13T05:05:12Z")

</div>

Closed on January 13, 2024, 5:05am UTC

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