# onZoomSDKInitializeResult, errorCode=5, internalErrorCode=124

**URL:** <https://devforum.zoom.us/t/onzoomsdkinitializeresult-errorcode-5-internalerrorcode-124/101811>\
**Category:** Meeting SDK\
**Created:** [January 15, 2024, 7:51am UTC](https://devforum.zoom.us/t/onzoomsdkinitializeresult-errorcode-5-internalerrorcode-124/101811 "2024-01-15T07:51:57Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoomtod504](https://avatars.discourse-cdn.com/v4/letter/z/cc9497/32.png) [@zoomtod504](https://devforum.zoom.us/u/zoomtod504)\
**Post date:** [January 15, 2024, 7:51am UTC](https://devforum.zoom.us/t/onzoomsdkinitializeresult-errorcode-5-internalerrorcode-124/101811/1 "2024-01-15T07:51:57Z")

</div>

**Subject** : Issue with SDK Initialization - Error Code 5 and Internal Error 124

**Description** : Hello Zoom SDK Support,

I am currently facing an issue while initializing the latest version of the Zoom SDK in my application. Despite following the documentation and ensuring that my API key and token generation are correct, I’m consistently encountering an error.

**SDK Version** : Latest Version -v5.17.1.18530  
**Error Details** :

- Error observed during SDK initialization.
- Error Codes: `errorCode=5` and `internalErrorCode=124`.

**Relevant Code Snippet** :  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/c/0cdef83f7ab7dffed560ecf13053ea267f1954cd.png)

```auto
{
  "appKey": "fR6heC1hetPF4f *****",
  "iat": 1705303095,
  "tokenExp": 1705339095,
  "exp": 1705389495
}

```

**Log Extract** :

```auto
2024-01-15 13:06:19.649 11781-11781 System.out us.zoom.sdkexample I onZoomSDKInitializeResult, errorCode=5, internalErrorCode=124
2024-01-15 13:06:19.649 11781-11781 InitAuthSDKHelper us.zoom.sdkexample I onZoomSDKInitializeResult, errorCode=5, internalErrorCode=124
2024-01-15 13:06:19.649 11781-11781 ZoomSDKExample us.zoom.sdkexample I onZoomSDKInitializeResult, errorCode=5, internalErrorCode=124
2024-01-15 13:06:19.650 11781-11781 Compatibil...geReporter us.zoom.sdkexample D Compat change id reported: 147798919; UID 10168; state: ENABLED

```

**Attempted Solutions** :

- Verified API key and secret.
- Checked the JWT token generation for accuracy.
- Ensured that the SDK version is the latest and compatible with my development setup.

**Request** : Could you please assist in identifying the cause of this error and suggest a solution? I am unsure if this is related to my implementation or an issue with the SDK environment.

Thank you for your assistance.

Best regards,  
kapil sharma

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [January 16, 2024, 3:29am UTC](https://devforum.zoom.us/t/onzoomsdkinitializeresult-errorcode-5-internalerrorcode-124/101811/2 "2024-01-16T03:29:47Z")

</div>

@zoomtod504 ,

Could you share where did you get the appKey from?  
The appKey should the your Client ID as shown on the screenshot which you have shared.

---

<div class="post-metadata">

**Author:** ![vaibhavpandey936](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vaibhavpandey936/32/55810_2.png) [@vaibhavpandey936](https://devforum.zoom.us/u/vaibhavpandey936)\
**Post date:** [January 22, 2024, 4:06pm UTC](https://devforum.zoom.us/t/onzoomsdkinitializeresult-errorcode-5-internalerrorcode-124/101811/3 "2024-01-22T16:06:50Z")

</div>

am also facing same issue

const KJUR = require(‘jsrsasign’);

function generateSignature(key, secret, meetingNumber, role) {  
try {  
const iat = Math.round(new Date().getTime() / 1000) - 30;  
const exp = iat + 60 \* 60 \* 2;  
const oHeader = { alg: ‘HS256’, typ: ‘JWT’ };  
const oPayload = {  
appKey: key,  
iat: iat,  
exp: exp,  
tokenExp: exp  
};

```
    const sHeader = JSON.stringify(oHeader);
    const sPayload = JSON.stringify(oPayload);
    const sdkJWT = KJUR.jws.JWS.sign('HS256', sHeader, sPayload, secret);
    return sdkJWT;
} catch (error) {
    console.error('Error generating signature:', error);
    return null;
}

```

}

console.log(generateSignature(‘S2Rz\_a2rQCd9fMVZX1nWg’, ‘S2Rz\_a2rQCd9WMVfX1nWg’, ‘77634806451’, 1));

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [January 23, 2024, 8:42am UTC](https://devforum.zoom.us/t/onzoomsdkinitializeresult-errorcode-5-internalerrorcode-124/101811/4 "2024-01-23T08:42:25Z")

</div>

@vaibhavpandey936 could you share a sample of your JWT token?

---

<div class="post-metadata">

**Author:** ![m.mudasir](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/m.mudasir/32/49503_2.png) [@m.mudasir](https://devforum.zoom.us/u/m.mudasir)\
**Post date:** [April 17, 2024, 2:12pm UTC](https://devforum.zoom.us/t/onzoomsdkinitializeresult-errorcode-5-internalerrorcode-124/101811/5 "2024-04-17T14:12:50Z")

</div>

Facing same issue here is jwt sample

 ![Screenshot (8)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/a/baab0cdc18fde1f89bbe7fd7d1fa9a1f35279b49.png)

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [April 26, 2024, 7:51am UTC](https://devforum.zoom.us/t/onzoomsdkinitializeresult-errorcode-5-internalerrorcode-124/101811/6 "2024-04-26T07:51:12Z")

</div>

@m.mudasir please start a new thread and tag me if you are having issue with sdk authentication

---

<div class="post-metadata">

**Author:** ![m.mudasir](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/m.mudasir/32/49503_2.png) [@m.mudasir](https://devforum.zoom.us/u/m.mudasir)\
**Post date:** [April 26, 2024, 8:02am UTC](https://devforum.zoom.us/t/onzoomsdkinitializeresult-errorcode-5-internalerrorcode-124/101811/7 "2024-04-26T08:02:22Z")

</div>

@chunsiong.zoom , SDK auth issue was resolved. Now i want to receive raw audio data in my android app using zoom sdk, but i am facing issue MobileRTCRawData\_No\_License

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [April 26, 2024, 8:02am UTC](https://devforum.zoom.us/t/onzoomsdkinitializeresult-errorcode-5-internalerrorcode-124/101811/8 "2024-04-26T08:02:50Z")

</div>

please start a new thread @m.mudasir

---

<div class="post-metadata">

**Author:** ![parth.sangani](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/parth.sangani/32/49905_2.png) [@parth.sangani](https://devforum.zoom.us/u/parth.sangani)\
**Post date:** [September 3, 2024, 5:49am UTC](https://devforum.zoom.us/t/onzoomsdkinitializeresult-errorcode-5-internalerrorcode-124/101811/9 "2024-09-03T05:49:52Z")

</div>

@m.mudasir mudasir how to resolve this [onZoomSDKInitializeResult, errorCode=5, internalErrorCode=124].

what actually need in JWT TOKEN my jwt is showing right but still getting same error .

---

<div class="post-metadata">

**Author:** ![parth.sangani](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/parth.sangani/32/49905_2.png) [@parth.sangani](https://devforum.zoom.us/u/parth.sangani)\
**Post date:** [September 3, 2024, 9:32am UTC](https://devforum.zoom.us/t/onzoomsdkinitializeresult-errorcode-5-internalerrorcode-124/101811/10 "2024-09-03T09:32:38Z")

</div>

@chunsiong.zoom how to resolve this [onZoomSDKInitializeResult, errorCode=5, internalErrorCode=124].

what actually need in JWT TOKEN my jwt is showing right but still getting same error .

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 4, 2024, 6:23am UTC](https://devforum.zoom.us/t/onzoomsdkinitializeresult-errorcode-5-internalerrorcode-124/101811/11 "2024-09-04T06:23:24Z")

</div>

@parth.sangani please start a new thread, tag me and share the token which you are using.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 4, 2024, 6:23am UTC](https://devforum.zoom.us/t/onzoomsdkinitializeresult-errorcode-5-internalerrorcode-124/101811/12 "2024-09-04T06:23:27Z")

</div>


