onZoomSDKInitializeResult, errorCode=5, internalErrorCode=124

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

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

Log Extract :

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

@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.

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));

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