# The Meeting Number is Wrong 1.7.5

**URL:** <https://devforum.zoom.us/t/the-meeting-number-is-wrong-1-7-5/13576>\
**Category:** Web\
**Created:** [April 16, 2020, 8:10pm UTC](https://devforum.zoom.us/t/the-meeting-number-is-wrong-1-7-5/13576 "2020-04-16T20:10:50Z")\
**Posts on this page:** 12\
**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:** [April 16, 2020, 8:10pm UTC](https://devforum.zoom.us/t/the-meeting-number-is-wrong-1-7-5/13576/1 "2020-04-16T20:10:50Z")

</div>

**Description**  
I’m using the code from the Start & Join docs almost verbatim with the Heroku test app for signatures.

**Error**  
errorCode: 1  
errorMessage: “The meeting number is wrong.”  
method: “join”  
result: null  
status: false

**Which version?**  
1.7.5

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

```
fetch('https://zoom-signature-testing.herokuapp.com/', {
    method: 'POST',
    body: JSON.stringify({ meetingNumber: config.meetingNumber, role: 0 })
}).then(function (result) {
    return result.text();
}).then(function (response) {
    response = $.parseJSON(response);
    //console.log('signature', response.signature);

    //console.log('ZoomMtg.init()');

    ZoomMtg.init({
	    debug: true,
	    leaveUrl: config.leaveUrl,
	    isSupportAV: true,
	    success: function (res) {
	        console.log('ZoomMtg.join()', res);
	        ZoomMtg.join({
	            signature: response.signature,
	            apiKey: config.apiKey,
	            meetingNumber: config.meetingNumber,
	            userName: config.userName,
	            userEmail: config.userEmail,
	            passWord: config.passWord,
	            success: function (res) { console.log('join success', res); },
	            error: function (res) { console.log('join error', res); }
	        });
	    },
	    error: function (err) {
	        console.log('err', err);
	    }
    });
});
```

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 17, 2020, 6:39am UTC](https://devforum.zoom.us/t/the-meeting-number-is-wrong-1-7-5/13576/2 "2020-04-17T06:39:13Z")

</div>

Hey @sales1,

Are you creating the meeting before hand and starting it, then joining with the Web SDK?

Thanks,  
Tommy

---

<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:** [April 17, 2020, 11:53am UTC](https://devforum.zoom.us/t/the-meeting-number-is-wrong-1-7-5/13576/3 "2020-04-17T11:53:32Z")

</div>

Yes, this is an existing, recurring meeting setup on the account which I’m using to test with. I can join the meeting using the same details as I’m passing into the SDK via the desktop app.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 20, 2020, 5:07pm UTC](https://devforum.zoom.us/t/the-meeting-number-is-wrong-1-7-5/13576/4 "2020-04-20T17:07:07Z")

</div>

Hey @sales1,

Can you please share one of your old signatures to [developersupport@zoom.us](mailto:developersupport@zoom.us) so I can debug?

Thanks,  
Tommy

---

<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:** [April 21, 2020, 5:18pm UTC](https://devforum.zoom.us/t/the-meeting-number-is-wrong-1-7-5/13576/5 "2020-04-21T17:18:14Z")

</div>

I now seem to be getting “The Signature has Expired”

Here is an old signature:

This is the code. I copied this from [/docs/sdk/native-sdks/web/essential/signature](https://marketplace.zoom.us/docs/sdk/native-sdks/web/essential/signature) and updated it for [VB.net](http://VB.net) but it should be otherwise the same, essentially.

```
    Public Overridable Function ZoomGetSignature(config As ZoomMeetingConfig) As GenericResult
        Dim result As New GenericResult

        '' get timestamp
        Dim ts As String = (ToTimestamp(DateTime.UtcNow.ToUniversalTime()) - 30000).ToString()

        result.Data = CreateToken(config.ApiKey, config.MeetingNumber, ts, config.Role)
        result.Success = True

        Return result
    End Function

    Private Function ToTimestamp(ByVal value As DateTime) As Long
        Dim epoch As Long = (value.Ticks - 621355968000000000) / 10000
        Return epoch
    End Function

    Private Function CreateToken(ByVal apiKey As String, ByVal meetingNumber As String, ByVal ts As String, ByVal role As String) As String
        Dim padding() As Char = {"="}

        Dim message As String = String.Format("{0}{1}{2}{3}", apiKey, meetingNumber, ts, role)

        Dim encoding As New System.Text.ASCIIEncoding()
        Dim keyByte() As Byte = encoding.GetBytes(apiSecret)
        Dim messageBytesTest() As Byte = encoding.GetBytes(message)
        Dim msgHashPreHmac As String = System.Convert.ToBase64String(messageBytesTest)
        Dim messageBytes() As Byte = encoding.GetBytes(msgHashPreHmac)

        Dim token As String

        Using hmacsha256 As New HMACSHA256(keyByte)
            Dim hashmessage() As Byte = hmacsha256.ComputeHash(messageBytes)
            Dim msgHash As String = System.Convert.ToBase64String(hashmessage)
            token = String.Format("{0}.{1}.{2}.{3}.{4}", apiKey, meetingNumber, ts, role, msgHash)
            Dim tokenBytes = System.Text.Encoding.UTF8.GetBytes(token)

            token = System.Convert.ToBase64String(tokenBytes).TrimEnd(padding)
        End Using

        Return token
    End Function
```

---

<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:** [April 21, 2020, 7:17pm UTC](https://devforum.zoom.us/t/the-meeting-number-is-wrong-1-7-5/13576/6 "2020-04-21T19:17:32Z")

</div>

And now I seem to be getting “Your connection has timed out and you cannot join the meeting. Verify your network connectivity and try again.” Using the same code. No changes.

I doubt my network is actually the issue as I have no issue connecting to zoom meetings with the Zoom Web client on your site.

---

<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:** [April 21, 2020, 7:33pm UTC](https://devforum.zoom.us/t/the-meeting-number-is-wrong-1-7-5/13576/7 "2020-04-21T19:33:12Z")

</div>

So it appears that when I do

```
Dim epoch As Long = value.Ticks / TimeSpan.TicksPerMillisecond

```

I get “The Signature has Expired”, when I use the code for the timestamp in the example, I get the other error “Your connection has timed out and you cannot join the meeting. Verify your network connectivity and try again.”

And when I use the JS GenerateSignature method, I can connect to the meeting.

---

<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:** [April 21, 2020, 8:17pm UTC](https://devforum.zoom.us/t/the-meeting-number-is-wrong-1-7-5/13576/8 "2020-04-21T20:17:06Z")

</div>

There was a role mismatch, which was causing the error. It would be helpful if perhaps a more specific error was provided when the role used in the hash doesn’t match what is used in the final encode.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 23, 2020, 12:55am UTC](https://devforum.zoom.us/t/the-meeting-number-is-wrong-1-7-5/13576/9 "2020-04-23T00:55:22Z")

</div>

Hey @sales1,

Did you get it working now? We are working on the error messages.

Thanks,  
Tommy

---

<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:** [April 23, 2020, 1:24pm UTC](https://devforum.zoom.us/t/the-meeting-number-is-wrong-1-7-5/13576/10 "2020-04-23T13:24:37Z")

</div>

Sorted. I don’t see a “close” button but I seem to be good now.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 27, 2020, 6:26pm UTC](https://devforum.zoom.us/t/the-meeting-number-is-wrong-1-7-5/13576/11 "2020-04-27T18:26:28Z")

</div>

Happy to hear it is working! 🙂

-Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 8:56pm UTC](https://devforum.zoom.us/t/the-meeting-number-is-wrong-1-7-5/13576/12 "2020-08-21T20:56:41Z")

</div>

Closed on August 21, 2020, 8:56pm UTC


