# Sporadic Joining Meeting Timeout - Fail to Join Meeting - No Error Detail - Error Callback not Called

**URL:** <https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507>\
**Category:** Web\
**Created:** [August 16, 2023, 6:48pm UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507 "2023-08-16T18:48:02Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![sales1](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sales1](https://devforum.zoom.us/u/sales1)\
**Post date:** [August 16, 2023, 6:48pm UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507/1 "2023-08-16T18:48:02Z")

</div>

**Meeting SDK Type and Version**  
Error Present in 2.9.7 and in 2.14.0

**Description**  
This happens randomly and sporadically when joining a meeting and clicking retry 1 or more times resolves it. Sometimes you have to click retry 5 times, sometimes 2 times, it’s completely arbitrary. Many meetings start fine, many meetings have this error.

The ZoomMtg.join({error: function()}) lambda never gets called for these errors like it does for many other errors. So no additional error info or detail can be retrieved.

**Error?**  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/1/b1c71ca3caf2b788cd16017539ad6efa601bde18.png)

**Troubleshooting Routes**  
We click Retry until it works.

For testing, I intentionally created a signature that would be expired, but that triggers the error lambda where I print the error detail to the console and the detail indicates the signature is expired. I get no such additional error detail when this occurs, so I don’t believe this is an issue with signature generation.

It is very difficult to troubleshoot generic, non-descriptive errors especially when we cannot see any detailed information, or in many cases when the detailed error data itself is generic and not descriptive or specific. I must once again renew my desperate plea for Zoom to provide adequately descriptive errors that actually explain the problem.

**How To Reproduce**

1. Meeting SDK/OAuth/ZAK token\*
2. See above for the only error: Joining Meeting Timeout - Fail to Join Meeting
3. Chrome Version 115.0.5790.171 & other supported versions
4. Start a meeting with the Meeting SDK/Client View
5. Attempt to join the meeting
6. Click Join Meeting on the Video/Microphone test page
7. Error is shown.
8. Click Retry until it works.

---

<div class="post-metadata">

**Author:** ![sales1](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sales1](https://devforum.zoom.us/u/sales1)\
**Post date:** [August 21, 2023, 8:17pm UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507/2 "2023-08-21T20:17:16Z")

</div>

We still have no solution for this, can someone look into this?

---

<div class="post-metadata">

**Author:** ![sales1](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sales1](https://devforum.zoom.us/u/sales1)\
**Post date:** [August 25, 2023, 3:29pm UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507/3 "2023-08-25T15:29:54Z")

</div>

There is still no error detail and the error callback function is not getting called with error details. Has anyone looked into this?

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [August 25, 2023, 8:26pm UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507/4 "2023-08-25T20:26:00Z")

</div>

Hi @sales1 ,

Can you please record this testing process. When you are done, message me your developer email associated the Meeting SDK, client id, link to the recording and the meeting id for the join meeting testing you concluded. I will private message you now so we have a thread where you can send this.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [August 27, 2023, 8:59pm UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507/6 "2023-08-27T20:59:20Z")

</div>

Developer shared videos. Asked developer to share signature generation code and if they’re able to reproduce this with the sample app.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [September 1, 2023, 6:51pm UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507/7 "2023-09-01T18:51:59Z")

</div>

> [@sales1](#):
>
> Error Present in 2.9.7 and in 2.14.0

Cannot reproduce, inquiry submitted (ZSEE-104154).

---

<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:** [September 1, 2023, 7:34pm UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507/8 "2023-09-01T19:34:44Z")

</div>

where do you create the signature - backend or client browser?

---

<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:** [September 4, 2023, 4:41am UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507/9 "2023-09-04T04:41:08Z")

</div>

> [@sales1](#):
>
> Sometimes you have to click retry 5 times, sometimes 2 times, it’s completely arbitrary. Many meetings start fine, many meetings have this error.

@sales1 , could you try setting the IAT time to a slightly earlier time, say 5 mins earlier? There is a possibility that there is some time difference / time drift between different systems

---

<div class="post-metadata">

**Author:** ![sales1](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sales1](https://devforum.zoom.us/u/sales1)\
**Post date:** [September 5, 2023, 7:33pm UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507/10 "2023-09-05T19:33:48Z")

</div>

> [@chunsiong.zoom](#):
>
> @sales1 , could you try setting the IAT time to a slightly earlier time, say 5 mins earlier? There is a possibility that there is some time difference / time drift between different systems

@chunsiong.zoom I tried that as part of my testing attempting to duplicate/force the error. That throws a slightly different error and calls the error lambda with the error information.

I’ve tested both by forcing the signature to be in the future and in the past (expired) and both return fairly sensible errors and call the error lambda every time with error information. For expired signatures the error states that the signature is expired and for future signatures if I recall correctly it says the signature is invalid.

---

<div class="post-metadata">

**Author:** ![sales1](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sales1](https://devforum.zoom.us/u/sales1)\
**Post date:** [September 5, 2023, 7:35pm UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507/11 "2023-09-05T19:35:13Z")

</div>

> [@j.schoenemeyer](#):
>
> where do you create the signature - backend or client browser?

This is production; the signature is created on the server in `ASP.Net` / `VB.Net`. It would expose the secret in the code to create it client side.

---

<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:** [September 5, 2023, 8:55pm UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507/12 "2023-09-05T20:55:32Z")

</div>

to modify “iat” is important - if the clock on your server is not identical to the clock on the zoom server(s)

here is the working example implementation (in JavaScript)

> <https://github.com/zoom/meetingsdk-auth-endpoint-sample/blob/master/index.js>

- iat = currentTime - 30 sec
- exp = iat + 2 h
- tokenExp = iat + 2h

---

<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:** [September 5, 2023, 9:10pm UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507/13 "2023-09-05T21:10:59Z")

</div>

have a look

> [@Error creating signature in Prod](https://devforum.zoom.us/t/error-creating-signature-in-prod/88686):
>
> Hi, I’m having trouble implementing zoomMeeting in production. I created a new app in the Marketplace SDK which provides me with a Client ID and the Key Secret. Both replace them with the sdkKey and ApiKey. The fact is that locally and on my test server it works perfectly and I can join the meeting. But once I have it on my production server it gives me an error that the signature appears. I’m using version 2.11.5 currently, I’ve tried all the others and it also works less in production. I ha…

or here (-60 sec for more compatibility)

> [@Join\_meeting\_failed](https://devforum.zoom.us/t/join-meeting-failed/89758/16):
>
> @efren , it seems the code is ok. I would do something like var iat = ToEpoch(now.AddSeconds(-60)); var exp = ToEpoch(now.AddDays(1)); For the meeting which you are joining, are they created by users in the same account or users in external accounts?

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [September 6, 2023, 1:41pm UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507/14 "2023-09-06T13:41:25Z")

</div>

> [@gianni.zoom](#):
>
> 104154

Also followed up with service engineering. Still waiting for any additional insights on the error.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [September 7, 2023, 5:01pm UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507/15 "2023-09-07T17:01:18Z")

</div>

Followed up with developer for HAR logs for troubleshooting.

---

<div class="post-metadata">

**Author:** ![optonetltd](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/optonetltd/32/51839_2.png) [@optonetltd](https://devforum.zoom.us/u/optonetltd)\
**Post date:** [September 8, 2023, 12:57am UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507/16 "2023-09-08T00:57:19Z")

</div>

@sales1

We have a very similar problem: [https://devforum.zoom.us/t/zoom-web-meeting-sdk-has-stopped-working-since-last-month-joining-meeting-timeout-fail-to-join-the-meeting/94672](https://devforum.zoom.us/t/zoom-web-meeting-sdk-has-stopped-working-since-last-month-joining-meeting-timeout-fail-to-join-the-meeting/94672)

- Do you have SDK key & SDK secret in App Credentials section of your Meeting SDK app in [App Marketplace](http://marketplace.zoom.us/user/build)? Or only Client ID & Client Secret?
- For the API calls, do you have a separated OAuth app, or are you using the OAuth integrated in Meeting SDK app?
- Are you creating the meeting with OAuth for an external user, and then joining as host with the user ZAK token? Or you only use the OAuth / Meeting SDK for your own account / sub-accounts?
- Have you checked if the error happens with your own account?

---

<div class="post-metadata">

**Author:** ![sales1](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sales1](https://devforum.zoom.us/u/sales1)\
**Post date:** [September 12, 2023, 3:43pm UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507/17 "2023-09-12T15:43:39Z")

</div>

After a lot of testing and comparing the config for successful joins against unsuccessful joins, I discovered there was, in fact, an unreported issue with the signing token in our signature. I think this should trigger a specific error, or at least a signature error. This error and behaviour of this error was unnecessarily baffling and had us looking everywhere but the problem.

If you’re working in .Net you don’t have a good option for base 64 URL encoding that zoom supports out of the box. Unfortunately Zoom (at least when I read it) doesn’t specify which character replacements that need to happen for signatures to work, just that “=” need to be trimmed from the end of tokens.

You may think that `HttpServerUtility.UrlTokenEncode` does what you need, but it adds a substitution digit to replace the “=” signs though it does encode “+” and “/” correctly. Your other option is to find `Base64UrlEncoder` buried in the `Microsoft.IdentityModel.Tokens` namespace that comes with a ton of different dependencies for you to use 1 function and probably won’t come up much if you’re googling this unless you dig through StackOverflow comments.

The below function can be used to encode all 3 sections of the JWT token/signature that is needed to start/join meetings with Zoom.

Hopefully Zoom will make the effort to update the error reporting to be more specific/clear; at least clear enough to identify the issue causing joining the meeting to fail. Ideally they will also eliminate abnormal behaviour (not calling the error lambda) with errors. This way these things are more predicable and loggable and we can at least know where to focus our effort when debugging. It’s one thing to not be able to report “there is a + symbol in your signature” but at the very least you should be able to report “the signature is not valid” and make sure the error lambda is called as expected so the developer can log these errors instead of relying on screenshots from end users.

Code for VB.Net developers to encode their signatures for Zoom. Feel free to use this if you found this post searching the forum with a similar issue. Zoom also has permission to use this in their documentation if they want.

```auto
		''' <summary>
		''' Generates an RFC compliant Base64 URL Encoded string
		''' </summary>
		''' <param name="data">Byte array of the data to encode</param>
		''' <remarks>
		''' RFC 4648 - https://datatracker.ietf.org/doc/html/rfc4648#section-5
		''' RFC 7515 - https://datatracker.ietf.org/doc/html/rfc7515#section-2
		''' </remarks>
		''' <returns>RFC Compliant Base 64 URL Encoded String</returns>
		Public Shared Function Base64UrlEncode(ByVal data As Byte()) As String
			Dim base64Data As String = Convert.ToBase64String(data)

			base64Data = base64Data.Replace("+", "-") ' Required by RFC 4648; Section 5
			base64Data = base64Data.Replace("/", "_") ' Required by RFC 4648; Section 5
			base64Data = base64Data.TrimEnd("=") ' Required by RFC 7515; Section 2

			Return base64Data
		End Function

```

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [September 12, 2023, 8:20pm UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507/18 "2023-09-12T20:20:36Z")

</div>

Thank you so much for sharing @sales1 . I will add this to the ticket and make a documentation request.

---

<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:** [October 13, 2023, 6:21am UTC](https://devforum.zoom.us/t/sporadic-joining-meeting-timeout-fail-to-join-meeting-no-error-detail-error-callback-not-called/93507/19 "2023-10-13T06:21:13Z")

</div>

Closed on October 13, 2023, 6:21am UTC

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