# Video sdk for web example not working

**URL:** <https://devforum.zoom.us/t/video-sdk-for-web-example-not-working/99427>\
**Category:** Video SDK\
**Created:** [December 3, 2023, 4:23am UTC](https://devforum.zoom.us/t/video-sdk-for-web-example-not-working/99427 "2023-12-03T04:23:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![joash.xu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joash.xu/32/54470_2.png) [@joash.xu](https://devforum.zoom.us/u/joash.xu)\
**Post date:** [December 3, 2023, 4:23am UTC](https://devforum.zoom.us/t/video-sdk-for-web-example-not-working/99427/1 "2023-12-03T04:23:05Z")

</div>

I am trying to run video SDK, specifically the `purejs-demo`. But I keep getting this error:

```json
{
    "type": "JOIN_MEETING_FAILED",
    "reason": "This account does not exist or does not belong to you",
    "errorCode": 200
}

```

I believe I am using the Video SDK account. I got my SDK key from [marketplace.zoom.us](http://marketplace.zoom.us) → Develop → Build video SDK and under SDK Credentials.

I use the following value for the `config.js`:

```javascript
export default {
    sdkKey: '<my SDK key>'
    sdkSecret: '<my secret key>'
    topic: 'cool number',
    name: "user123",
    sessionKey: "session123",
    password: "abc12345",
};

```

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [December 5, 2023, 6:52pm UTC](https://devforum.zoom.us/t/video-sdk-for-web-example-not-working/99427/2 "2023-12-05T18:52:49Z")

</div>

Hi @joash.xu ,

Thanks for your question. Just for my clarification, you’re using the Video SDK key and secret, not the Video SDK **API** key and secret, correct?

---

<div class="post-metadata">

**Author:** ![joash.xu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joash.xu/32/54470_2.png) [@joash.xu](https://devforum.zoom.us/u/joash.xu)\
**Post date:** [December 6, 2023, 1:22am UTC](https://devforum.zoom.us/t/video-sdk-for-web-example-not-working/99427/3 "2023-12-06T01:22:32Z")

</div>

Yes. I am using the Video SDK key and secret, and **not** the API key and secret.

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [December 6, 2023, 4:30pm UTC](https://devforum.zoom.us/t/video-sdk-for-web-example-not-working/99427/4 "2023-12-06T16:30:34Z")

</div>

HI @joash.xu ,

Thank you for your response. Continuing to troubleshoot, can you try setting up config.js with a different topic string and leaving ‘sessionKey’ blank. If this does not work, I’ll work with you to escalate the issue.

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![joash.xu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joash.xu/32/54470_2.png) [@joash.xu](https://devforum.zoom.us/u/joash.xu)\
**Post date:** [December 10, 2023, 8:51am UTC](https://devforum.zoom.us/t/video-sdk-for-web-example-not-working/99427/5 "2023-12-10T08:51:21Z")

</div>

Hi @rehema.zoom.

I have tried your suggestion, but it still does not work.

---

<div class="post-metadata">

**Author:** ![jfink](https://avatars.discourse-cdn.com/v4/letter/j/eada6e/32.png) [@jfink](https://devforum.zoom.us/u/jfink)\
**Post date:** [December 12, 2023, 11:13pm UTC](https://devforum.zoom.us/t/video-sdk-for-web-example-not-working/99427/6 "2023-12-12T23:13:22Z")

</div>

I think there is a bug in the pureJS-demo. role needs to be integer 0 or 1 but in session-joiner.js, empty string is being passed in. The below diff fixed the “account does not exist” issue for me.

```auto
--- a/purejs-demo/src/js/meeting/session-joiner.js
+++ b/purejs-demo/src/js/meeting/session-joiner.js
@@ -28,7 +28,7 @@ const joinSession = async (zmClient) => {
     sessionConfig.password,
     sessionConfig.sessionKey,
     '',
- '',
+ 1,
     uuidv4()
   );

```

---

<div class="post-metadata">

**Author:** ![kellyjandrews](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kellyjandrews/32/51599_2.png) [@kellyjandrews](https://devforum.zoom.us/u/kellyjandrews)\
**Post date:** [December 13, 2023, 1:52pm UTC](https://devforum.zoom.us/t/video-sdk-for-web-example-not-working/99427/7 "2023-12-13T13:52:34Z")

</div>

Looks like it is passing in an empty string and trying to default to 1 in the actual method, which would never work. I will get this updated and pushed. Thanks!
