# Failed to initialize Zoom SDK, Error: 5, internalErrorCode=124

**URL:** <https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-5-internalerrorcode-124/111864>\
**Category:** Meeting SDK\
**Created:** [June 13, 2024, 5:42am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-5-internalerrorcode-124/111864 "2024-06-13T05:42:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev33](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@dev33](https://devforum.zoom.us/u/dev33)\
**Post date:** [June 13, 2024, 5:42am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-5-internalerrorcode-124/111864/1 "2024-06-13T05:42:18Z")

</div>

Our company is releasing an application that works with ZoomMeeting,  
We have recently updated the ZoomSDK (v5.16.10.17706), and the following error occurs.

Failed to initialize Zoom SDK, Error: 5, internalErrorCode=124

The timing of this error is not constant and occurs at various times.  
When this occurs, the user cannot participate in ZoomMeeting, and restarting the application several times will improve the situation.

Internally, we believe that this is caused by a failure in the initialization of the Zoom SDK, but we have not found the cause in the implementation.  
Please see attached the source of the initialization part of the Zoom SDK.

Create JWT with io.jsonwebtoken  
AuthConstants.kt

```auto
        val SDK_JWTTOKEN: String
            get() {
                try {
                    val key = Keys.hmacShaKeyFor(BuildConfig.ZOOM_SDK_SECRET.toByteArray())
                    val now = Date()
                    val jws = Jwts.builder()
                        .header().add("alg", "HS256").and()
                        .header().add("typ", "JWT").and()
                        .issuedAt(now)
                        .expiration(Date(now.time + 1000 * 3600))
                        .signWith(key)
                        //.claim("sdkKey", BuildConfig.ZOOM_SDK_KEY)
                        .claim("appKey", BuildConfig.ZOOM_SDK_KEY)
                        .claim("tokenExp", Date(now.time + 1000 * 3600).time / 1000)
                        .compact();
                    return jws
                } catch(ex: Exception) {

                }
                return ""
            }

```

Initialize SDK using created JWT  
InitAuthSDKHelper.kt

```auto
    fun initSDK(context: Context?, callback: InitAuthSDKCallback?) {
        if (!mZoomSDK.isInitialized) {
            val jwtToken = AuthConstants.SDK_JWTTOKEN
            Timber.d("TOKEN:%s", jwtToken)
            mInitAuthSDKCallback = callback
            val initParams = ZoomSDKInitParams()
            initParams.jwtToken = jwtToken
            initParams.enableLog = true
            initParams.logSize = 50
            initParams.domain = AuthConstants.WEB_DOMAIN
            //initParams.appKey = AuthConstants.SDK_KEY
            //initParams.appSecret = AuthConstants.SDK_SECRET
            initParams.videoRawDataMemoryMode =
                ZoomSDKRawDataMemoryMode.ZoomSDKRawDataMemoryModeStack
            GlobalScope.launch(Dispatchers.Main) {
                mZoomSDK.initialize(context, this@InitAuthSDKHelper, initParams)
            }
        }
    }

```

---

<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:** [June 19, 2024, 4:35am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-5-internalerrorcode-124/111864/2 "2024-06-19T04:35:00Z")

</div>

@dev33 do you have a sample of your JWT token? Could you double check if the SDK is currently above the minimum support version as well?

---

<div class="post-metadata">

**Author:** ![dev33](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@dev33](https://devforum.zoom.us/u/dev33)\
**Post date:** [June 19, 2024, 6:55am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-5-internalerrorcode-124/111864/3 "2024-06-19T06:55:18Z")

</div>

Thank you for your reply!

> do you have a sample of your JWT token?

AppKey:  
SecretKey:

> Could you double check if the SDK is currently above the minimum support version as well?

We are using the SDK 5.16.10.17706 in the release version, so it should be within the support period.

---

<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:** [June 19, 2024, 7:06am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-5-internalerrorcode-124/111864/4 "2024-06-19T07:06:59Z")

</div>

@dev33.

Please rotate your secret key.

I would need the generated signature, and not the appkey and secret key.  
It is also known as the JWT Token

---

<div class="post-metadata">

**Author:** ![dev33](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@dev33](https://devforum.zoom.us/u/dev33)\
**Post date:** [June 26, 2024, 4:21am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-5-internalerrorcode-124/111864/5 "2024-06-26T04:21:19Z")

</div>

@chunsiong.zoom

Thank you for your confirmation.  
I got the JWT when the error occurred.  
Could you confirm us anything from this?

`eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTkzNzI5NTksImV4cCI6MTcxOTM3NjU1OSwiYXBwS2V5Ijoia0NjSlkwbWRCUHlBUVVHWnhUUExTclJUOXdNRGNEOFg1NWc0IiwidG9rZW5FeHAiOjE3MTkzNzY1NTl9.5NZ3Q2PElQ15KRDcIjgXovgmJ84pQB23h_92DwYyjhE`

---

<div class="post-metadata">

**Author:** ![dev33](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@dev33](https://devforum.zoom.us/u/dev33)\
**Post date:** [July 5, 2024, 9:47am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-5-internalerrorcode-124/111864/6 "2024-07-05T09:47:40Z")

</div>

@chunsiong.zoom

Is there anything from the information I have sent you that we should check with our side?

---

<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:** [July 5, 2024, 10:08am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-5-internalerrorcode-124/111864/7 "2024-07-05T10:08:46Z")

</div>

@dev33

sometimes i will use (now - 5) mins or more in case there is some time drift, or slight different time on the mobile phone. if the token is generated on server side, you would probably have more control on the time, but on the mobile side, it is dependent on the user’s mobile phone

```
                    .issuedAt(now)
                    .expiration(Date(now.time + 1000 * 3600))

```

---

<div class="post-metadata">

**Author:** ![Sajid](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sajid/32/69169_2.png) [@Sajid](https://devforum.zoom.us/u/Sajid)\
**Post date:** [June 13, 2025, 2:53pm UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-5-internalerrorcode-124/111864/8 "2025-06-13T14:53:04Z")

</div>

> [@Zoom SDK Android Getting Error 5 and internal code 24](https://devforum.zoom.us/t/zoom-sdk-android-getting-error-5-and-internal-code-24/133980):
>
> @yoon.conner @chunsiong.zoom Yesterday, I suddenly started getting an error in my Android APK using the Zoom SDK: Error 5 with internal error code 124. My app had been working fine for the past month, and I haven’t made any changes. This issue appeared out of nowhere. I have already verified that the Client Key and Client Secret used on my server match exactly with what’s shown in the Zoom Marketplace under my SDK app. Please help me understand why this error is happening and how to fix it.

Can you help me , I have facing same problem
