# Failed to initialize Zoom SDK error code 124

**URL:** https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-code-124/118296
**Category:** Meetings
**Tags:** android
**Created:** [September 29, 2024, 2:57pm UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-code-124/118296 "2024-09-29T14:57:49Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![myroomkw](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@myroomkw](https://devforum.zoom.us/u/myroomkw)
#### Post date: [September 29, 2024, 2:57pm UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-code-124/118296/1 "2024-09-29T14:57:49Z")

</div>

i am try to active join meeting in my flutter app  
i used V6.2.0 for mobileRTC .  
this is required a JWT token, and i try to get it by call this method

```auto
getJWTToken{
final iat = DateTime.now().millisecondsSinceEpoch ~/ 1000;
        final exp = iat + 60 * 60 * 2; // 2 hours expiry

        final oPayload = {
          'sdkKey': "IetSuceoT_6wtzYbW3zmXw",
          'role': 0,
          'iat': iat,
          'exp': exp,
          'tokenExp': exp // match token expiration
        };

// Create JWT token
        final jwt = JWT(
          oPayload,
          header: {
            'alg': 'HS256',
            'typ': 'JWT',
          },
        );

        final jwtToken = jwt.sign(SecretKey(""));
        print('JWT Token: $jwtToken');
return jwtToken;
}

```

and the output it like  
`jwtToken: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZGtLZXkiOiJJZXRTdWNlb1RfNnd0elliVzN6bVh3Iiwicm9sZSI6MCwiaWF0IjoxNzI3NjI0MzEzLCJleHAiOjE3Mjc2MzE1MTMsInRva2VuRXhwIjoxNzI3NjMxNTEzfQ.KADTl_Viig-q-1eWcPbY5XaZvdhdHEHmmf7p30egbkA`

i used Client ID and Client Secret  
@chunsiong.zoom

---

<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 30, 2024, 3:25am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-code-124/118296/2 "2024-09-30T03:25:45Z")

</div>

@myroomkw sorry before you jump into the issue, what are you trying to do here?

Are you using Video SDK or Meeting SDK?  
Only Video SDK supports flutter.

Meeting SDK does not support flutter.  
The JWT token is generated using Meeting SDK credentials, and should only be used with Meeting SDK.

---

<div class="post-metadata">

### Author: ![myroomkw](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@myroomkw](https://devforum.zoom.us/u/myroomkw)
#### Post date: [September 30, 2024, 6:42am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-code-124/118296/3 "2024-09-30T06:42:47Z")

</div>

> [@chunsiong.zoom](#):
>
> Meeting SDK

I know. I’m using `MethodChannel` to call my Android native code in my Flutter app. I downloaded MobileRTC from the marketplace, and when calling it, it requires a JWT token, but I only have the Client ID and Client Secret. After searching for JWT, I found the method above that takes the Client ID and Client Secret and returns a JWT token. However, when initializing Zoom, I get this 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 30, 2024, 8:17am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-code-124/118296/4 "2024-09-30T08:17:21Z")

</div>

@myroomkw I don’t understand.

Have you tried using the token on just a regular android meeting SDK first?

---

<div class="post-metadata">

### Author: ![myroomkw](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@myroomkw](https://devforum.zoom.us/u/myroomkw)
#### Post date: [September 30, 2024, 10:34am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-code-124/118296/5 "2024-09-30T10:34:26Z")

</div>

yes i do i run a regular android meeting SDK but gettinng the error

Failed to initialize Zoom SDK. Error: 1, internalErrorCode=0

---

<div class="post-metadata">

### Author: ![myroomkw](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@myroomkw](https://devforum.zoom.us/u/myroomkw)
#### Post date: [September 30, 2024, 1:01pm UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-code-124/118296/6 "2024-09-30T13:01:18Z")

</div>

![Screenshot 2024-09-30 at 4.00.49 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/9/19727d68ad2336b8485b934276febbe75aa416e2.png)

---

<div class="post-metadata">

### Author: ![myroomkw](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@myroomkw](https://devforum.zoom.us/u/myroomkw)
#### Post date: [September 30, 2024, 1:02pm UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-code-124/118296/7 "2024-09-30T13:02:31Z")

</div>

i get the jwt token from above screen and still get the error  
Failed to initialize Zoom SDK. Error: 1, internalErrorCode=0

---

<div class="post-metadata">

### Author: ![myroomkw](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@myroomkw](https://devforum.zoom.us/u/myroomkw)
#### Post date: [October 1, 2024, 9:26am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-code-124/118296/8 "2024-10-01T09:26:09Z")

</div>

> [@myroomkw](#):
>
> @chunsiong.zoom

any update??

@chunsiong.zoom

---

<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: [October 1, 2024, 10:23am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-code-124/118296/9 "2024-10-01T10:23:55Z")

</div>

@myroomkw

You are missing required fields in the token

applet and tokenExp

---

<div class="post-metadata">

### Author: ![myroomkw](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@myroomkw](https://devforum.zoom.us/u/myroomkw)
#### Post date: [October 1, 2024, 1:46pm UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-code-124/118296/10 "2024-10-01T13:46:30Z")

</div>

> [@chunsiong.zoom](#):
>
> applet

 ![Screenshot 2024-10-01 at 4.44.29 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/4/54cbda4f96304f4ec3107cd6196711c04affaf5f.png)

based on my info the applet meen the my app name in Marketplace  
i add it and still the same error.

also make applet is clientID and still the same error  
Failed to initialize Zoom SDK. Error: 1, internalErrorCode=0  
@chunsiong.zoom

---

<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: [October 1, 2024, 4:29pm UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-code-124/118296/11 "2024-10-01T16:29:55Z")

</div>

@myroomkw sorry that was an auto correct.

appKey

Please check out the docs for the specific parameters needee

---

<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: [October 1, 2024, 4:31pm UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-code-124/118296/12 "2024-10-01T16:31:05Z")

</div>

@myroomkw there are also some rules on the iat and expiry. I won’t mention them here, refer to the link.

They cannot all be at the same time

---

<div class="post-metadata">

### Author: ![myroomkw](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@myroomkw](https://devforum.zoom.us/u/myroomkw)
#### Post date: [October 2, 2024, 4:28pm UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-code-124/118296/13 "2024-10-02T16:28:26Z")

</div>

thanks worked for my .

the solution

the payload must like this

```auto
{
  "sdkKey": "client id",
  "appKey": "client id",
  "tokenExp": 1728056541,
  "name": "mo sedky",
  "role": 0,
  "exp": 1727885541,
  "iat": 1727883741
}

```

notes for tokenExp,exp and iat.

1. **iat (Issued At)**: This represents the time the token was created, given in Unix epoch time (seconds since 1970). It helps validate when the token was generated.

2. **exp (Expiration Time)**: This is the time when the token will expire. For the Meeting SDK, the `exp` value should be at least 1800 seconds (30 minutes) greater than the `iat` value but must not exceed 48 hours from the `iat`.

3. **tokenExp (Token Expiry)**: This is the expiration time of the token used in SDK requests. It should follow the same rules as `exp`, with a minimum of 1800 seconds from `iat` and a maximum of 48 hours from `iat`. Typically, the `exp` and `tokenExp` values are set to the same time​

---

<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: [October 3, 2024, 6:39am UTC](https://devforum.zoom.us/t/failed-to-initialize-zoom-sdk-error-code-124/118296/14 "2024-10-03T06:39:39Z")

</div>


