# Windows SDK Demo FAIL in VS2019 (& 17)

**URL:** <https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193>\
**Category:** Windows\
**Created:** [July 4, 2020, 3:25pm UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193 "2020-07-04T15:25:12Z")\
**Posts on this page:** 18\
**Page:** 2

<div class="post-metadata">

**Author:** ![benv28](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@benv28](https://devforum.zoom.us/u/benv28)\
**Post date:** [August 17, 2020, 8:13pm UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/21 "2020-08-17T20:13:24Z")

</div>

Hi @carson.zoom,

Having a similar error. I get error code 10124 when I generate my jwt from [jwt.io](http://jwt.io).  
Here is my header, payload, and verify signature:  
{  
“alg”: “HS256”,  
“typ”: “JWT”  
}

{  
“appKey”: “”,  
“iat”: 1597693709,  
“exp”: 1598693709,  
“tokenExp”: 1597793709  
}

HMACSHA256(  
base64UrlEncode(header) + “.” +  
base64UrlEncode(payload),  
  
)

the appKey I fill with my SDK key from my SDK credentials on the zoom marketplace. The SDK Secret I have pasted in with and without quotes. iat \< tokenExp \< exp. I have my domain still set to [https://zoom.us](https://zoom.us)

Any advice? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [August 20, 2020, 7:07am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/22 "2020-08-20T07:07:27Z")

</div>

Hi @benv28,

Thanks for using Zoom SDK. Please try to limit the `exp` to be less than 2 days away from `iat`. Please have a try. Thanks!

---

<div class="post-metadata">

**Author:** ![pavanschoovideos](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pavanschoovideos/32/12919_2.png) [@pavanschoovideos](https://devforum.zoom.us/u/pavanschoovideos)\
**Post date:** [August 21, 2020, 1:21pm UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/23 "2020-08-21T13:21:58Z")

</div>

Hey am also getting 10124 error code  
{  
“alg”: “HS256”,  
“typ”: “JWT”

}  
{  
“appKey”: “”,  
“iat”: 1597991611000,  
“exp”: 1598024011000,  
“tokenExp”: 1598027611000

}  
HMACSHA256(  
base64UrlEncode(header) + “.” +  
base64UrlEncode(payload),

)

what can be done to resolve

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [August 21, 2020, 8:59pm UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/24 "2020-08-21T20:59:00Z")

</div>

Hi @pavanschoovideos,

Thanks for the reply.

> [@pavanschoovideos](#):
>
> “iat”: 1597991611000,  
> “exp”: 1598024011000,  
> “tokenExp”: 1598027611000

The unit of the timestamp should be in seconds, please try to convert the timestamp.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![pavanschoovideos](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pavanschoovideos/32/12919_2.png) [@pavanschoovideos](https://devforum.zoom.us/u/pavanschoovideos)\
**Post date:** [August 22, 2020, 5:53am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/25 "2020-08-22T05:53:26Z")

</div>

{  
“appKey”: “sdk key”,  
“iat”: 1598076000,  
“exp”: 1598162400,  
“tokenExp”: 1598169600

}

getting same error.  
will this be the error of time stamp what kind of timestamp should i use can you give a date format for generating timestamp

---

<div class="post-metadata">

**Author:** ![pavanschoovideos](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pavanschoovideos/32/12919_2.png) [@pavanschoovideos](https://devforum.zoom.us/u/pavanschoovideos)\
**Post date:** [August 23, 2020, 10:03am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/26 "2020-08-23T10:03:10Z")

</div>

i have resolved the error it was due to the sdk that i was using when i changed the sdk it works

---

<div class="post-metadata">

**Author:** ![gshirreffs](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gshirreffs/32/3775_2.png) [@gshirreffs](https://devforum.zoom.us/u/gshirreffs)\
**Post date:** [August 26, 2020, 1:31am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/27 "2020-08-26T01:31:41Z")

</div>

I too, like everyone else here, am having problems getting the JWT to work in the sample app.

{  
“key”: “my app key here”,  
“iat”: 1598404372,  
“exp”: 1598490772,  
“tokenExp”: 1598490773  
}

just give the dreaded 10124 return. Authenticating using my app key and secret works fine. I have tried setting “tokenExp” to values before, equal to and after “exp”, to no effect.

[JWT.IO](http://JWT.IO) reports the “iat” and “exp” values as correct dates.

I’m really struggling to make this work. Failing at the first hurdle in the sample app makes it very difficult to work with this SDK.

---

<div class="post-metadata">

**Author:** ![Jonaskinny](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jonaskinny/32/14921_2.png) [@Jonaskinny](https://devforum.zoom.us/u/Jonaskinny)\
**Post date:** [September 1, 2020, 5:57pm UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/28 "2020-09-01T17:57:03Z")

</div>

Hi Carson,

Is this the same version (v\_2) that your site points to? The readme in v\_2 that your site points to refers to the latest project as ‘~new’ instead of ‘~v\_2’. The reason I ask is that I am dealing with the same errors this conversation thread addresses, using the v\_2 from your site.

Could you provide a URL here for each, please … (for my sanity)  
URL of zoom-sdk-windows-master latest  
URL of zoom-c-sharp-wrapper-master latest

Is v\_2 the same as ‘new’? I have gotten errors with v\_2 referencing ~DOT\_NET\_~_WRAPPER vs ~C\_SHARP_~\_WRAPPER so I cant be sure if I’m using a correct build.

Thanks Carson!

---

<div class="post-metadata">

**Author:** ![Jonaskinny](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jonaskinny/32/14921_2.png) [@Jonaskinny](https://devforum.zoom.us/u/Jonaskinny)\
**Post date:** [September 1, 2020, 10:32pm UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/29 "2020-09-01T22:32:17Z")

</div>

OK I have built both projects, here’s what my issue was in case anyone hits the situation where no matter how they follow the instructions, and include everything in every conceiveable path, it can still not find linked symbols, and what the issue was. Hint C++/C# newbie pilot error.

When I first tried to build the combined solution, and chose (don’t do this) upgrade the tools reference, it caused an update force on windows 10. Then an install of VS 2015, then 17 etc. to handle incremental tools issues,and during all this some reference to Windows dlls version conflict (I’m assuming) caused the underlying issue. Reistallation of VS 2019 and a clean setup on the \_V2 project enabled building both the C++ sdk project and the combined demo solution.

Thanks for all your help guys

---

<div class="post-metadata">

**Author:** ![Jonaskinny](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jonaskinny/32/14921_2.png) [@Jonaskinny](https://devforum.zoom.us/u/Jonaskinny)\
**Post date:** [September 2, 2020, 12:01am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/30 "2020-09-02T00:01:30Z")

</div>

Thanks again for developing the wrapper!

I just found the [one-way upgrade issue warning](https://marketplace.zoom.us/docs/sdk/native-sdks/windows/getting-started/install-sdk) in the SDK instructions; might be helpful to add this to the C# wrapper instructions if it saves other time/support tickets.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [September 4, 2020, 7:34am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/31 "2020-09-04T07:34:00Z")

</div>

Hi @gshirreffs,

Thanks for the post and pardon the late response. Please try to make the “exp” larger than the “tokenExp”. Everything else looks good. Please have a try.

Thanks!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [September 4, 2020, 7:36am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/32 "2020-09-04T07:36:02Z")

</div>

Hi @Jonaskinny,

Thanks for the posts and pardon the late response. Glad to hear that you have found the solution. I will forward your feedback to the doc team to enhance the instructions. Let me know if any other questions.

Thanks!

---

<div class="post-metadata">

**Author:** ![simon.andrei879](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@simon.andrei879](https://devforum.zoom.us/u/simon.andrei879)\
**Post date:** [October 6, 2020, 3:49am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/33 "2020-10-06T03:49:58Z")

</div>

Hi

I am still getting the same error code 10124, though I tried everything listed here.  
Could anyone find a solution?

Here’s my payload for generating jwt token  
{  
key: ‘’,  
iat: 1601955894,  
exp: 1602128694,  
tokenExp: 1602215094  
}

I am really exhausted to make it running in my local environment.

Thank you and I am looking forward to getting a solution.

---

<div class="post-metadata">

**Author:** ![simon.andrei879](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@simon.andrei879](https://devforum.zoom.us/u/simon.andrei879)\
**Post date:** [October 6, 2020, 3:54am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/34 "2020-10-06T03:54:12Z")

</div>

Hi

> [@Electron SDK error in function sdkauthCB Status 5](https://devforum.zoom.us/t/electron-sdk-error-in-function-sdkauthcb-status-5/24816/4):
>
> Sorry @carson.zoom, Finally I founded my error smile My first code had errors in TimeStamp. Now is working, the new code: const jwt = require("jsonwebtoken"); let dt = new Date(); let data = new Date(dt.getTime() + 30 \* 60000).getTime(); let iat = Math.floor(Date.now() / 1000); let exp = Math.floor(data / 1000); let tokenExpCreate = new Date(dt.getTime() + 60 \* 60000).getTime(); let tokenExp = Math.floor(tokenExpCreate / 1000); const payloadSDK = { appKey: "", iat: iat, exp: exp,…

I tried this already but it’s still not working in my side.

I tried electron-sdk sample and windoes-sdk sample  
But failed.

Could you please help me how to make it working?

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [October 10, 2020, 3:23am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/35 "2020-10-10T03:23:31Z")

</div>

Hi @simon.andrei879,

Thanks for the reply and sorry to hear that it is still not working for you. Here is a python snippet that could help you to generate the JWT token:

```auto
iat = long(int(time.time()))
exp = long((datetime.datetime.today() + datetime.timedelta(days=2)).strftime("%s"))
tokenExp = long((datetime.datetime.today() + datetime.timedelta(hours=1)).strftime("%s"))

    payload = {
        'appKey': key,
        'iat': iat,
        'exp': exp,
        'tokenExp': tokenExp
    }
    encoded = jwt.encode(payload, secret, algorithm='HS256')

```

Please have a try. Thanks!

---

<div class="post-metadata">

**Author:** ![mitchwongg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mitchwongg/32/17226_2.png) [@mitchwongg](https://devforum.zoom.us/u/mitchwongg)\
**Post date:** [October 17, 2020, 4:37am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/36 "2020-10-17T04:37:40Z")

</div>

I am having the exact same problem as everyone. I entered all the required sections carefully, but yet I keep getting the 10124 return on the sample app. What can I do to make it work? here’s what i entered into the [JWT.io](http://JWT.io): [version v5.2.41727.0928]  
{  
“alg”: “HS256”,  
“typ”: “JWT”  
}

{  
“appKey”: “…”,

```
  "iat": 1602913345, 
     "exp": 1603000762, 
     "tokenExp": 1602925162 

```

}

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [October 24, 2020, 9:01am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/37 "2020-10-24T09:01:49Z")

</div>

Hi @mitchwongg,

Thanks for using Zoom SDK. Could you have a try with the code snippet I posted above and see if that helps? You may find more details here: [https://github.com/zoom/zoom-sdk-windows#initializing-sdk-with-jwt-token](https://github.com/zoom/zoom-sdk-windows#initializing-sdk-with-jwt-token)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![cefaw44159](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@cefaw44159](https://devforum.zoom.us/u/cefaw44159)\
**Post date:** [July 6, 2022, 8:03am UTC](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193/38 "2022-07-06T08:03:10Z")

</div>

[Epoxy flake flooring Brisbane](https://www.epoxyflooringredlands.com.au/epoxy-ultra-flake-flooring) prepared by epoxy flooring redheads and they provide good service for home s and offices.  
Benefits Of Ultra Flake:  
Epoxy Ultra Flake is an amazing waterproof flooring system, great for both residential and commercial use. Interior and exterior areas like basements, workshops, garages, patios, driveways, changing rooms and showers can benefit from epoxy flake flooring.

[Previous page](https://devforum.zoom.us/t/windows-sdk-demo-fail-in-vs2019-17/23193.md?page=1)
