# Unable to initializezoom sdk

**URL:** <https://devforum.zoom.us/t/unable-to-initializezoom-sdk/59067>\
**Category:** Android\
**Created:** [October 19, 2021, 8:36am UTC](https://devforum.zoom.us/t/unable-to-initializezoom-sdk/59067 "2021-10-19T08:36:30Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![zack.ryder](https://avatars.discourse-cdn.com/v4/letter/z/35a633/32.png) [@zack.ryder](https://devforum.zoom.us/u/zack.ryder)\
**Post date:** [October 19, 2021, 8:36am UTC](https://devforum.zoom.us/t/unable-to-initializezoom-sdk/59067/1 "2021-10-19T08:36:30Z")

</div>

Hi,  
I found some issue when I am testing your android sample app.

I got following issue during sdk initialisation

ZoomSDKExample: onZoomSDKInitializeResult, errorCode=1, internalErrorCode=0

I used following detail to create JWT token:-

{  
“appKey”: MY SDK KEY,  
“iat”: 1634567090,  
“exp”: 1634653326,  
“tokenExp”: 5000  
}

in my other demo app issue related to sdk initialisation occur but got different issue message, in this my demo app I got following issue during initialisation:-

errorcode=3 internalErrorCode= 1000006000

In this demo app I used my app sdk and secret key but above issue occur.

Please help me

---

<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:** [October 19, 2021, 11:17pm UTC](https://devforum.zoom.us/t/unable-to-initializezoom-sdk/59067/2 "2021-10-19T23:17:42Z")

</div>

Hi @zack.ryder, thanks for the post.

Based on the JWT payload you have provided, this appears to be an issue with the `tokenExp` value being invalid. It must be `>= iat + 1800`.

> in my other demo app issue related to sdk initialisation occur but got different issue message, in this my demo app I got following issue during initialisation:-

This error code indicates that the network was not available. Are you sure that your device has network access?

Thanks!

---

<div class="post-metadata">

**Author:** ![zack.ryder](https://avatars.discourse-cdn.com/v4/letter/z/35a633/32.png) [@zack.ryder](https://devforum.zoom.us/u/zack.ryder)\
**Post date:** [October 20, 2021, 9:30am UTC](https://devforum.zoom.us/t/unable-to-initializezoom-sdk/59067/3 "2021-10-20T09:30:34Z")

</div>

ok, let me check with above solution related to tokenExp key value.

---

<div class="post-metadata">

**Author:** ![zack.ryder](https://avatars.discourse-cdn.com/v4/letter/z/35a633/32.png) [@zack.ryder](https://devforum.zoom.us/u/zack.ryder)\
**Post date:** [October 20, 2021, 11:54am UTC](https://devforum.zoom.us/t/unable-to-initializezoom-sdk/59067/4 "2021-10-20T11:54:50Z")

</div>

> [@zack.ryder](#):
>
> tokenExp

I now created JWT from following data:-

{  
“appKey”: “vLoBKaWIj5cJH5ybd5k0Sks62mYPwSx1RN1O”,  
“iat”: 1634723074,  
“exp”: 1634895874,  
“tokenExp”: 1634728074  
}

now I got following issue:- Failed to initiate Zoom SDK, Error:1 InternalErrorCode= 0

My internet is also working fine

---

<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:** [October 20, 2021, 6:24pm UTC](https://devforum.zoom.us/t/unable-to-initializezoom-sdk/59067/5 "2021-10-20T18:24:45Z")

</div>

Hi @zack.ryder,

Looking at our [error code documentation](https://marketplace.zoom.us/docs/sdk/native-sdks/android/resource/error-codes), this indicates that invalid arguments were provided when initializing the SDK. Can you please provide a snippet showing how you are initializing the SDK?

Thanks!

---

<div class="post-metadata">

**Author:** ![zack.ryder](https://avatars.discourse-cdn.com/v4/letter/z/35a633/32.png) [@zack.ryder](https://devforum.zoom.us/u/zack.ryder)\
**Post date:** [October 21, 2021, 4:22am UTC](https://devforum.zoom.us/t/unable-to-initializezoom-sdk/59067/6 "2021-10-21T04:22:57Z")

</div>

Hi @jon.zoom  
I download and run this sample app found under your latest version of zoom sdk. Zoom SDK version is zoom-sdk-android-5.7.6.1915. Under this sdk their are two sample having name sample and example2.

I am checking sample app and got issues. I only change JWT token not anything else.

following is the code for sdk initialisation:-

/\*\*  
\* init sdk method  
\*/  
public void initSDK(Context context, InitAuthSDKCallback callback) {  
if (!mZoomSDK.isInitialized()) {  
mInitAuthSDKCallback = callback;

```
        ZoomSDKInitParams initParams = new ZoomSDKInitParams();
        initParams.jwtToken = SDK_JWTTOKEN;
        initParams.enableLog = true;
        initParams.enableGenerateDump =true;
        initParams.logSize = 5;
        initParams.domain=AuthConstants.WEB_DOMAIN; // zoom.us
        initParams.videoRawDataMemoryMode = ZoomSDKRawDataMemoryMode.ZoomSDKRawDataMemoryModeStack;
        mZoomSDK.initialize(context, this, initParams);
    }
}

```

Thank you

---

<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:** [October 21, 2021, 6:06pm UTC](https://devforum.zoom.us/t/unable-to-initializezoom-sdk/59067/7 "2021-10-21T18:06:44Z")

</div>

Hi @zack.ryder,

Thanks for the additional information. Just for the sake of ruling out potential issues, can you please try initializing the SDK using raw key/secret values and let me know if you are seeing any errors?

Thanks!

---

<div class="post-metadata">

**Author:** ![zack.ryder](https://avatars.discourse-cdn.com/v4/letter/z/35a633/32.png) [@zack.ryder](https://devforum.zoom.us/u/zack.ryder)\
**Post date:** [October 26, 2021, 4:46am UTC](https://devforum.zoom.us/t/unable-to-initializezoom-sdk/59067/8 "2021-10-26T04:46:46Z")

</div>

Hi @jon.zoom as per your suggestion I tried to initialise zoom sdk using key/secret values. Code for initialisation is following:-

/\*\*  
\* init sdk method  
\*/  
public void initSDK(Context context, InitAuthSDKCallback callback) {  
if (!mZoomSDK.isInitialized()) {  
mInitAuthSDKCallback = callback;

```
        ZoomSDKInitParams initParams = new ZoomSDKInitParams();

```

// initParams.jwtToken = SDK\_JWTTOKEN;  
initParams.appKey = “vLoBKaWIj5cJH5ybd5k0Sks62mYPwSx1RN1O”; // TODO: Retrieve your SDK key and enter it here  
initParams.appSecret = “”; // TODO: Retrieve your SDK secret and enter it here  
initParams.enableLog = true;  
initParams.enableGenerateDump =true;  
initParams.logSize = 5;  
initParams.domain=AuthConstants.WEB\_DOMAIN;  
initParams.videoRawDataMemoryMode = ZoomSDKRawDataMemoryMode.ZoomSDKRawDataMemoryModeStack;  
mZoomSDK.initialize(context, this, initParams);  
}  
}

but again It is failed to initialise sdk and give following error message:-

onZoomSDKInitializeResult, errorCode=3, internalErrorCode=100006000(I am testing on emulator and network is working fine.)

Please check.

Thank you!

---

<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:** [October 26, 2021, 5:49pm UTC](https://devforum.zoom.us/t/unable-to-initializezoom-sdk/59067/9 "2021-10-26T17:49:40Z")

</div>

Hi @zack.ryder,

Since your post contained your SDK secret in plain text, I had to edit your post to remove it. You will need to go into your developer account and generate a new secret ASAP. As a reminder, please keep your developer credentials private.

Can you please confirm what value you are using for the `domain` field?

Thanks!

---

<div class="post-metadata">

**Author:** ![zack.ryder](https://avatars.discourse-cdn.com/v4/letter/z/35a633/32.png) [@zack.ryder](https://devforum.zoom.us/u/zack.ryder)\
**Post date:** [October 27, 2021, 6:01am UTC](https://devforum.zoom.us/t/unable-to-initializezoom-sdk/59067/10 "2021-10-27T06:01:53Z")

</div>

Hi @jon.zoom

I am using following data for domain field:-

public final static String WEB\_DOMAIN = “[zoom.us](http://zoom.us)”;

and thank you for editing my post.

Thank you!

---

<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:** [October 27, 2021, 4:45pm UTC](https://devforum.zoom.us/t/unable-to-initializezoom-sdk/59067/11 "2021-10-27T16:45:24Z")

</div>

Hi @zack.ryder,

There shouldn’t be any issues with the domain you are using. Are you using any sort of proxy on your network?

Thanks!

---

<div class="post-metadata">

**Author:** ![zack.ryder](https://avatars.discourse-cdn.com/v4/letter/z/35a633/32.png) [@zack.ryder](https://devforum.zoom.us/u/zack.ryder)\
**Post date:** [November 1, 2021, 3:55am UTC](https://devforum.zoom.us/t/unable-to-initializezoom-sdk/59067/12 "2021-11-01T03:55:49Z")

</div>

Hi @jon.zoom

No I am not using any kind of proxy in my network. My mobile network is fine.

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:** [November 1, 2021, 6:35pm UTC](https://devforum.zoom.us/t/unable-to-initializezoom-sdk/59067/13 "2021-11-01T18:35:28Z")

</div>

Hi @zack.ryder,

Thanks for confirming. Based on the information provided, there does not appear to be anything wrong with your implementation or environment. I think we will need to see if the SDK logs reveal any additional information. Can you please provide those so we can investigate further?

If you aren’t aware already, the SDK logs are an encrypted file and can be found at `sdcard/Android/data/${YOUR_PACKAGE_NAME}/logs`.

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:** [December 2, 2021, 4:36am UTC](https://devforum.zoom.us/t/unable-to-initializezoom-sdk/59067/14 "2021-12-02T04:36:20Z")

</div>

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