# Error Code: 2014 when Start Meeting Android Sample video SDK

**URL:** <https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992>\
**Category:** Video SDK\
**Created:** [February 8, 2022, 3:32pm UTC](https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992 "2022-02-08T15:32:56Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![elfaza](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elfaza/32/33470_2.png) [@elfaza](https://devforum.zoom.us/u/elfaza)\
**Post date:** [February 8, 2022, 3:32pm UTC](https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992/1 "2022-02-08T15:32:56Z")

</div>

**Description**  
I keep receiving error code: 2014 when start the meeting. It already show the video, with status connecting after that it close and show error code: 2014. Can you help me what is the problem?

**Which Mobile Video SDK version?**  
Version 1.1.2

**Screenshots**  
 ![Capture](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/61aa16333cbe18bea0525997095ddfa1f54788e0.png)

This is the example payload object for the jwt

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 9, 2022, 2:23am UTC](https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992/2 "2022-02-09T02:23:49Z")

</div>

Hi @elfaza,

Can you please provide the concrete values you are using for all of the params **other than** `app_key`? Also, can you provide a code snippet showing how you are attempting to join the session?

Thanks!

---

<div class="post-metadata">

**Author:** ![elfaza](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elfaza/32/33470_2.png) [@elfaza](https://devforum.zoom.us/u/elfaza)\
**Post date:** [February 9, 2022, 1:26pm UTC](https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992/3 "2022-02-09T13:26:56Z")

</div>

Hello,

Sorry for the late reply. Here is my values

```auto
iat: 1644413024
exp: 1644427424
version: 1
user_identity: test
tpc: session test

```

Here is my code snippet

```auto
ZoomVideoSDKSessionContext sessionContext = new ZoomVideoSDKSessionContext();

ZoomVideoSDKAudioOption audioOption = new ZoomVideoSDKAudioOption();
audioOption.connect = true;
audioOption.mute = false;
sessionContext.audioOption = audioOption;

ZoomVideoSDKVideoOption videoOption = new ZoomVideoSDKVideoOption();
videoOption.localVideoOn = true;
sessionContext.videoOption = videoOption;

String name = nameEdit.getText().toString();
if (TextUtils.isEmpty(name)) {
    name = Build.MODEL;
}

String password = passwordEdit.getText().toString();

//Required
sessionContext.sessionName = sessionName;
sessionContext.userName = name;

//GET START
String token = Constants.TOKEN;
if (TextUtils.isEmpty(token)) {
    token = JWTUtil.createJWTAccessToken(sessionName, name);
}

if (TextUtils.isEmpty(token)) {
    Toast.makeText(this, "Token is empty", Toast.LENGTH_LONG).show();
    return;
}
//GET END
sessionContext.token = token;

ZoomVideoSDKSession session = ZoomVideoSDK.getInstance().joinSession(sessionContext);

```

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 10, 2022, 12:49am UTC](https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992/4 "2022-02-10T00:49:30Z")

</div>

Hi @elfaza,

Thanks for that. It isn’t clear what value is being passed into the SDK for the `sessionContext.sessionName` field. Can you please confirm?

Thanks!

---

<div class="post-metadata">

**Author:** ![elfaza](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elfaza/32/33470_2.png) [@elfaza](https://devforum.zoom.us/u/elfaza)\
**Post date:** [February 10, 2022, 1:37pm UTC](https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992/5 "2022-02-10T13:37:27Z")

</div>

Hello,

The session name value is same as tpc value.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 10, 2022, 10:28pm UTC](https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992/6 "2022-02-10T22:28:38Z")

</div>

Hi @elfaza,

Thanks for confirming. I noticed that you are including the `role_type` field, but are using v1.1.2. This field was introduced in v1.2.0, so we haven’t done much testing around using it in earlier versions of the SDK. Can you try removing this from the JWT and testing again? Alternatively, you could update to v1.2.0.

Thanks!

---

<div class="post-metadata">

**Author:** ![elfaza](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elfaza/32/33470_2.png) [@elfaza](https://devforum.zoom.us/u/elfaza)\
**Post date:** [February 11, 2022, 10:15am UTC](https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992/7 "2022-02-11T10:15:21Z")

</div>

Hello,

I already change to v1.2.0, but unfortunately, the error still appear Error Code: 2014. When create the session, the role\_type should be 1 right?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 11, 2022, 9:03pm UTC](https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992/8 "2022-02-11T21:03:09Z")

</div>

Hi @elfaza,

Yes, you should be using a value of 1 for the host to start the session. Can you please provide the JWT you are using with the SDK credential edited out so we can investigate?

Thanks!

---

<div class="post-metadata">

**Author:** ![elfaza](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elfaza/32/33470_2.png) [@elfaza](https://devforum.zoom.us/u/elfaza)\
**Post date:** [February 13, 2022, 1:28pm UTC](https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992/9 "2022-02-13T13:28:10Z")

</div>

Hello,

```auto
payLoadObject.put("version", 1);
payLoadObject.put("role_type", 1);
payLoadObject.put("iat", "1644758841");
payLoadObject.put("exp", "1644773241");
payLoadObject.put("user_identity", "test1");
payLoadObject.put("tpc", "test");

```

Here is the payload

---

<div class="post-metadata">

**Author:** ![elfaza](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elfaza/32/33470_2.png) [@elfaza](https://devforum.zoom.us/u/elfaza)\
**Post date:** [February 15, 2022, 2:40pm UTC](https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992/10 "2022-02-15T14:40:51Z")

</div>

Hello,

Any updates in this issue?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 23, 2022, 2:08am UTC](https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992/11 "2022-02-23T02:08:43Z")

</div>

Hi @elfaza,

Apologies if my last reply was not clear, but I meant the actual JWT string that is being passed into the SDK (with your developer credentials replaced with some other value). Can you please provide that?

Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [March 4, 2022, 5:48pm UTC](https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992/13 "2022-03-04T17:48:53Z")

</div>

Hi @AndroidDev,

Can you also provide the JWT string you are using with your credentials removed?

Thanks!

---

<div class="post-metadata">

**Author:** ![AndroidDev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/androiddev/32/25320_2.png) [@AndroidDev](https://devforum.zoom.us/u/AndroidDev)\
**Post date:** [March 5, 2022, 11:26am UTC](https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992/16 "2022-03-05T11:26:32Z")

</div>

I had the same issue. I discovered that I was using the API Key and API Secret instead of the SDK Key and SDK Secret. The error code 2014 will get generated if you use the API Key/Secret.

Personally I find this very wrong on Zoom’s part. The documentation on the JWT token clearly indicates the use of the api\_key and therefore one will asume that this is the API key when it is not.

To be honest, I have no idea what the API Key is even used for. I think Zoom should address this in their documentation. It is very misleading.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [March 7, 2022, 6:17pm UTC](https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992/17 "2022-03-07T18:17:11Z")

</div>

Hi @AndroidDev,

Glad to hear you were able to resolve this! The API credentials you were using are meant to be used with the [Video SDK REST API](https://marketplace.zoom.us/docs/api-reference/zoom-video-sdk-api).

Thanks for the feedback regarding our documentation. I will forward this to our documentation team. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![Benedict](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Benedict](https://devforum.zoom.us/u/Benedict)\
**Post date:** [March 8, 2022, 6:50am UTC](https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992/18 "2022-03-08T06:50:19Z")

</div>

Hi @[jon.lieblich](https://devforum.zoom.us/u/jon.lieblich), I would like to confirm this issue again about 1.2.1, There must add the role\_type field to get a token, and the value is 1 for the host, 0 for other participantes? Right?

Thanks~

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [March 8, 2022, 5:47pm UTC](https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992/19 "2022-03-08T17:47:35Z")

</div>

Hi @Benedict,

That is correct. For all versions \<= 1.2.0, you must include the `role_type` field in the payload. You are correctly understanding the values provided. If you’re ever unsure, you can refer to our [documentation](https://marketplace.zoom.us/docs/sdk/video/auth#payload), which outlines all of the required fields in the payload. 🙂

Thanks!

---

<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:** [April 8, 2022, 3:47am UTC](https://devforum.zoom.us/t/error-code-2014-when-start-meeting-android-sample-video-sdk/63992/20 "2022-04-08T03:47:36Z")

</div>

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