# Zoom Web SDK shows Joining Meeting Timeout. Fail to join the meeting

**URL:** <https://devforum.zoom.us/t/zoom-web-sdk-shows-joining-meeting-timeout-fail-to-join-the-meeting/83741>\
**Category:** Meeting SDK\
**Created:** [February 26, 2023, 10:43am UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-joining-meeting-timeout-fail-to-join-the-meeting/83741 "2023-02-26T10:43:18Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![samudraganguly002017](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/samudraganguly002017/32/45827_2.png) [@samudraganguly002017](https://devforum.zoom.us/u/samudraganguly002017)\
**Post date:** [February 26, 2023, 10:43am UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-joining-meeting-timeout-fail-to-join-the-meeting/83741/1 "2023-02-26T10:43:18Z")

</div>

### Format Your New Topic as Follows:

**Meeting SDK Type and Version**  
_Share the Meeting SDK type and version you’re working with to give relevant context._

Zoom Web SDK 2.9.7 (latest)

**Description**

I am trying to implement CDN Client View in Zoom Web SDK. I am using Flask as backend.

Here is my code:

```auto
<html>
<body>
<script src="https://source.zoom.us/2.9.7/lib/vendor/react.min.js"></script>
<script src="https://source.zoom.us/2.9.7/lib/vendor/react-dom.min.js"></script>
<script src="https://source.zoom.us/2.9.7/lib/vendor/redux.min.js"></script>
<script src="https://source.zoom.us/2.9.7/lib/vendor/redux-thunk.min.js"></script>
<script src="https://source.zoom.us/2.9.7/lib/vendor/lodash.min.js"></script>

<!-- CDN for client view -->
<script src="https://source.zoom.us/zoom-meeting-2.9.7.min.js"></script>

<head>
  <link type="text/css" rel="stylesheet" href="https://source.zoom.us/2.9.5/css/bootstrap.css" />
  <link type="text/css" rel="stylesheet" href="https://source.zoom.us/2.9.5/css/react-select.css" />
</head>

<script>
ZoomMtg.setZoomJSLib('https://source.zoom.us/2.9.7/lib', '/av')
// loads dependent assets
ZoomMtg.preLoadWasm()
ZoomMtg.prepareWebSDK()
// loads language files, also passes any error messages to the ui
ZoomMtg.i18n.load('en-US')
ZoomMtg.i18n.reload('en-US')

const sdkKey = "xxxxxxx";
const userName = sessionStorage.getItem("N");
const meetingNumber = sessionStorage.getItem("ID");
const passWord = sessionStorage.getItem("Pass");
const leaveUrl = "http://localhost:5050/videolist";
console.log(meetingNumber)
console.log(passWord)

//const KJUR = require('jsrsasign')
// https://www.npmjs.com/package/jsrsasign

const signature = "{{ signature }}"
console.log(signature)
ZoomMtg.init({
  leaveUrl: leaveUrl, // https://example.com/thanks-for-joining
  success: (success) => {
    console.log('Success init')
    ZoomMtg.join({
      sdkKey: sdkKey,
      signature: signature, // role in SDK signature needs to be 0
      meetingNumber: meetingNumber,
      passWord: passWord,
      userName: userName,
      userEmail: "xxxxxx", //Actual Email ID was given
      success: (success) => {
        console.log('Success join')
        console.log(success)
      },
      error: (error) => {
        console.log("A" + error + " B " + error.message)
        console.log(sdkKey)
        console.log(signature)
        console.log(meetingNumber)
        console.log(passWord)
        console.log(userName)
        
      }
    })
  },
  error: (error) => {
    console.log(error)
  }
})
</script>
</body>
</html>

```

Below is my Flask code:

```auto
@app.route('/meeting/<IDP>', methods=['GET'])
def meet(IDP):
    ID = IDP[:IDP.index(' ')]
    payload = {'sdkKey': SDK_KEY, "meetingNumber": ID, "role": 0, "user": IDP[IDP.index(' ')+1:], "iat": time.strftime("%d %b %y %H:%M:%S",time.gmtime())}
    encoded = jwt.encode({"some": payload}, SECRET, algorithm="HS256")
    return render_template('meeting.html', signature = encoded)

```

**Error?**

ZoomMtg.init is working fine, but **ZoomMtg.join** always fails. It shows “_Joining Meeting Timeout. Fail to join the meeting_”

 ![fail to join](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/a/1a606fd68d6cbc9e4785a30391ddcce13ac3997c.png)

This is what I got in console:

 ![Polish_20230226_174226077](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/d/7d3e1f2ebe540342cdd682c450f95dcdbfc007a1.png)

**Troubleshooting Routes**

I have tried implementing all the solutions I could get from web.

**How To Reproduce**

It always shows this error.

---

<div class="post-metadata">

**Author:** ![j.schoenemeyer](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@j.schoenemeyer](https://devforum.zoom.us/u/j.schoenemeyer)\
**Post date:** [February 26, 2023, 12:58pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-joining-meeting-timeout-fail-to-join-the-meeting/83741/2 "2023-02-26T12:58:07Z")

</div>

here are more details for of the [meeting sdk signature](https://marketplace.zoom.us/docs/sdk/native-sdks/auth/#use-the-meeting-sdk-jwt-to-join-and-start-meetings)

if you can’t find a solution to your problem, you should try the [example on github](https://devforum.zoom.us/t/signature-is-invalid-joining-meeting-timeout-error/83625/4)

---

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [February 26, 2023, 4:17pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-joining-meeting-timeout-fail-to-join-the-meeting/83741/3 "2023-02-26T16:17:22Z")

</div>

@samudraganguly002017 Hope you will be fine.

Your shared code is not inside `<body></body>` tag. Please correct that first.

---

<div class="post-metadata">

**Author:** ![samudraganguly002017](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/samudraganguly002017/32/45827_2.png) [@samudraganguly002017](https://devforum.zoom.us/u/samudraganguly002017)\
**Post date:** [February 26, 2023, 7:09pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-joining-meeting-timeout-fail-to-join-the-meeting/83741/4 "2023-02-26T19:09:59Z")

</div>

According to the first link that you provided, I have made the following changes:

```auto
@app.route('/meeting/<IDP>', methods=['GET'])
def meet(IDP):
    ID = IDP[:IDP.index(' ')]
    t = time.gmtime()
    s = time.time() + 4 * 3600
    f = time.gmtime(s)
    payload = {'sdkKey': SDK_KEY, "mn": ID, "role": 0, "iat": time.strftime("%H:%M:%S",time.gmtime()), "exp": time.strftime("%H:%M:%S",f), "tokenexp": time.strftime("%H:%M:%S",f)}
    encoded = jwt.encode({"some": payload}, SDK_SECRET, algorithm="HS256")
    return render_template('meeting.html', signature = encoded)

```

Still, I am getting the **same error**. I cannot understand where I made the mistake.

---

<div class="post-metadata">

**Author:** ![samudraganguly002017](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/samudraganguly002017/32/45827_2.png) [@samudraganguly002017](https://devforum.zoom.us/u/samudraganguly002017)\
**Post date:** [February 26, 2023, 7:12pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-joining-meeting-timeout-fail-to-join-the-meeting/83741/5 "2023-02-26T19:12:10Z")

</div>

@freelancer.nak Hi Naeem, I have put the code inside the `<body></body>` tag. Still getting the same error.

---

<div class="post-metadata">

**Author:** ![j.schoenemeyer](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@j.schoenemeyer](https://devforum.zoom.us/u/j.schoenemeyer)\
**Post date:** [February 26, 2023, 8:18pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-joining-meeting-timeout-fail-to-join-the-meeting/83741/6 "2023-02-26T20:18:33Z")

</div>

have you tried the [github example](https://devforum.zoom.us/t/signature-is-invalid-joining-meeting-timeout-error/83625/4) (CDN version)?

so you can test if your **Meeting SDK app** works correctly

---

<div class="post-metadata">

**Author:** ![samudraganguly002017](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/samudraganguly002017/32/45827_2.png) [@samudraganguly002017](https://devforum.zoom.us/u/samudraganguly002017)\
**Post date:** [February 26, 2023, 8:32pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-joining-meeting-timeout-fail-to-join-the-meeting/83741/7 "2023-02-26T20:32:12Z")

</div>

No, not yet. I will.

---

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [February 27, 2023, 5:31am UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-joining-meeting-timeout-fail-to-join-the-meeting/83741/8 "2023-02-27T05:31:22Z")

</div>

Here are the sessions regarding WebSDK Integrations

- [Zoom Meeting SDK Integration with VueJS](https://youtu.be/CMpe56VoTTo)
- [Zoom Meeting SDK Integration with ReactJS](https://youtu.be/4BgkLvH7T0Y)
- [Zoom Meeting SDK Integration with AngularJS](https://youtu.be/utXjISjjHOY)
- [NextJS - Zoom WebSDK Component View](https://youtu.be/mwta4hZOtpc)← Here described Component View Videos Rendering Sizes
- [Zoom Meeting SDK Client View Integration](https://youtu.be/zaIhI_BZKJo)

---

<div class="post-metadata">

**Author:** ![samudraganguly002017](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/samudraganguly002017/32/45827_2.png) [@samudraganguly002017](https://devforum.zoom.us/u/samudraganguly002017)\
**Post date:** [February 27, 2023, 3:57pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-joining-meeting-timeout-fail-to-join-the-meeting/83741/9 "2023-02-27T15:57:39Z")

</div>

Hi, this is to let you all know that I have finally succeeded in implementing the SDK. The time was creating the problem. Please find the correct code below.

```auto
@app.route('/meeting/<IDP>', methods=['GET'])
def meet(IDP):
    ID = IDP[:IDP.index(' ')]
    payload = {'sdkKey': SDK_KEY, "mn": ID, "role": 0, "iat": int(time.time()), "exp": int(time.time())+4*3600, "tokenexp": int(time.time())+4*3600}
    encoded = jwt.encode(payload, SDK_SECRET, algorithm="HS256")
    return render_template('meeting.html', signature = encoded)

```

But, I am facing another problem.

I want to remove the details that can be found in the top left corner of the meeting.

 ![Zoom details](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/b/ab7b8174901215b2790398e508aca3827854a577.png)

Is it possible to remove this option? If yes, please help me.

---

<div class="post-metadata">

**Author:** ![samudraganguly002017](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/samudraganguly002017/32/45827_2.png) [@samudraganguly002017](https://devforum.zoom.us/u/samudraganguly002017)\
**Post date:** [February 27, 2023, 4:01pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-joining-meeting-timeout-fail-to-join-the-meeting/83741/10 "2023-02-27T16:01:29Z")

</div>

I have solved it too. Setting `meetingInfo: []` in ZoomMtg.init did the trick.

---

<div class="post-metadata">

**Author:** ![samudraganguly002017](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/samudraganguly002017/32/45827_2.png) [@samudraganguly002017](https://devforum.zoom.us/u/samudraganguly002017)\
**Post date:** [February 28, 2023, 4:14am UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-joining-meeting-timeout-fail-to-join-the-meeting/83741/11 "2023-02-28T04:14:13Z")

</div>

There is something I want to know. Although, I am using timestamp, and it is extremely rare that two people will have the exact same timestamp, what if two people have the same timestamp and hence, same signature? Will that be a problem?
