# Zoom meeting SDK v2.11.5 JavaScript - Throwing time out error

**URL:** <https://devforum.zoom.us/t/zoom-meeting-sdk-v2-11-5-javascript-throwing-time-out-error/88401>\
**Category:** Web\
**Created:** [May 15, 2023, 11:29am UTC](https://devforum.zoom.us/t/zoom-meeting-sdk-v2-11-5-javascript-throwing-time-out-error/88401 "2023-05-15T11:29:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![praveens](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/praveens/32/48518_2.png) [@praveens](https://devforum.zoom.us/u/praveens)\
**Post date:** [May 15, 2023, 11:29am UTC](https://devforum.zoom.us/t/zoom-meeting-sdk-v2-11-5-javascript-throwing-time-out-error/88401/1 "2023-05-15T11:29:56Z")

</div>

Hi, trying to integrate the Zoom meeting SDK (v2.11.5) using Java Script and HTML. Followed the documentation on authenticating using the SDK app but found only the Client credentials (ID and secret) and not the SDK credentials(ID and secret).

But when I try to join an existing meeting, I’m getting the following error:  
“Your connection has timed out and you cannot join the meeting. Verify your network connectivity and try again.”

and went through the logs and found exceptions mentioning Video not connected and Audio not connected.

Not sure if this is an issue or a mistake in setting up the code. Any guidance would be helpful as I am unable to find any solution in the documentation.

Thanks for the help in advance.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [May 16, 2023, 5:13am UTC](https://devforum.zoom.us/t/zoom-meeting-sdk-v2-11-5-javascript-throwing-time-out-error/88401/2 "2023-05-16T05:13:15Z")

</div>

Hi Praveen,

For newer version of SDK, you will use Client ID in place of SDK Key, and Client Secret in place of SDK Secret.

You will need to generate a JWT token using the Client ID and Client Secret before you can join a meeting.  
If you are having issues, are you able to share your generated JWT token here?

---

<div class="post-metadata">

**Author:** ![praveens](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/praveens/32/48518_2.png) [@praveens](https://devforum.zoom.us/u/praveens)\
**Post date:** [May 16, 2023, 8:52am UTC](https://devforum.zoom.us/t/zoom-meeting-sdk-v2-11-5-javascript-throwing-time-out-error/88401/3 "2023-05-16T08:52:46Z")

</div>

Hi Chun Siong,

Thanks for the response.  
Here is the JWT and the code sample that we used.

eyJhbGciOiJIUzI1NiJ9.eyJ0b2tlbkV4cCI6MTY4NDIzMDY2NCwibW4iOiI4MTk4OTg3MjM2NiIsInJvbGUiOjEsInNka0tleSI6IkdoMEZmY1lTZWVPS0Z3VmtQTjkwUSIsImlzcyI6IkdoMEZmY1lTZWVPS0Z3VmtQTjkwUSIsImV4cCI6MTY4NDIzMDY2NCwiaWF0IjoxNjg0MjI3MDY0fQ.1VSbvKod8ZweItqsOPv7lzfh6PklO8I0pxK6GBS6KCU

The sample code we used:  
ZoomMtg.init({  
leaveUrl: leaveUrl,  
screenShare: false,  
success: (success) =\> {  
console.log(“Initialized”);  
ZoomMtg.join({  
signature: generateSignature(),  
sdkKey: clientId,  
meetingNumber: meetingNumber,  
username: “[praveens@vuram.com](mailto:praveens@vuram.com)”,  
password: password,  
success: (success) =\> {  
console.log(“Joined”);  
},  
error: (error) =\> {  
console.log("Exception at Join: "+error);  
}  
});  
},  
error: (error) =\> {  
console.log("Exception at Init: "+error);  
}  
})

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [May 16, 2023, 9:12am UTC](https://devforum.zoom.us/t/zoom-meeting-sdk-v2-11-5-javascript-throwing-time-out-error/88401/4 "2023-05-16T09:12:17Z")

</div>

your header seems to be missing “typ”: “JWT”

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/e/ee590c3490c61c43cb1618b8c57d34fd3f3bdcce.png)

---

<div class="post-metadata">

**Author:** ![praveens](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/praveens/32/48518_2.png) [@praveens](https://devforum.zoom.us/u/praveens)\
**Post date:** [May 16, 2023, 9:47am UTC](https://devforum.zoom.us/t/zoom-meeting-sdk-v2-11-5-javascript-throwing-time-out-error/88401/5 "2023-05-16T09:47:25Z")

</div>

The header contains the alg and typ parameters. But still the time out error is occuring.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [May 16, 2023, 11:42am UTC](https://devforum.zoom.us/t/zoom-meeting-sdk-v2-11-5-javascript-throwing-time-out-error/88401/6 "2023-05-16T11:42:28Z")

</div>

@praveens ,

Are you using this sample code?

> **[GitHub - zoom/meetingsdk-javascript-sample: Use the Zoom Meeting SDK in...](https://github.com/zoom/meetingsdk-javascript-sample)**
>
> Use the Zoom Meeting SDK in (vanilla) JavaScript. Contribute to zoom/meetingsdk-javascript-sample development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![praveens](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/praveens/32/48518_2.png) [@praveens](https://devforum.zoom.us/u/praveens)\
**Post date:** [May 22, 2023, 6:25am UTC](https://devforum.zoom.us/t/zoom-meeting-sdk-v2-11-5-javascript-throwing-time-out-error/88401/7 "2023-05-22T06:25:09Z")

</div>

I used the JWT generation code provided in the documentation and used the component view code to test.  
I’m not sure whether the issue is with the generated JWT or the code.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [May 24, 2023, 7:36am UTC](https://devforum.zoom.us/t/zoom-meeting-sdk-v2-11-5-javascript-throwing-time-out-error/88401/8 "2023-05-24T07:36:57Z")

</div>

do you have screenshot of the console log?

---

<div class="post-metadata">

**Author:** ![praveens](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/praveens/32/48518_2.png) [@praveens](https://devforum.zoom.us/u/praveens)\
**Post date:** [May 24, 2023, 10:12am UTC](https://devforum.zoom.us/t/zoom-meeting-sdk-v2-11-5-javascript-throwing-time-out-error/88401/9 "2023-05-24T10:12:16Z")

</div>

Yes here are the screenshots.  
[![](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/1/21c639931e734a6e419536d0ab9d6ce44d833a54.png) ](https://doc-04-0s-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/dqol9fgag6dg5v6o86ur1eh8epocgn9d/1684923075000/17409260044085061583/*/14Sf54278nWt3d4Cp10KVJLm_TttK_mHy?e=view&uuid=9a8ddcd2-22e6-4c20-a5e7-1cb6c0922fba)  
[![](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/9/b96f12d45f9a7f9dbac87a58d2b7ef0e4ca943f5.png) ](https://doc-04-0s-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/e014roo1ivl6cb5fa7qk8n3k21d0mdcm/1684923075000/17409260044085061583/*/14ZjXiCaiVwoh1EXIiLC8W13sUTD_baSM?e=view&uuid=de814910-145b-4d8b-a6a5-4968e21dc97c)

---

<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:** [June 23, 2023, 8:12pm UTC](https://devforum.zoom.us/t/zoom-meeting-sdk-v2-11-5-javascript-throwing-time-out-error/88401/10 "2023-06-23T20:12:20Z")

</div>

Closed on June 23, 2023, 8:12pm UTC

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