# ErrorType=2003,Error Details=16 followed by Error Type=2008,Error Details=16 iOS

**URL:** <https://devforum.zoom.us/t/errortype-2003-error-details-16-followed-by-error-type-2008-error-details-16-ios/81559>\
**Category:** Video SDK\
**Tags:** ios, jwt\
**Created:** [January 17, 2023, 5:57am UTC](https://devforum.zoom.us/t/errortype-2003-error-details-16-followed-by-error-type-2008-error-details-16-ios/81559 "2023-01-17T05:57:48Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishnu.vithala](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vishnu.vithala/32/44581_2.png) [@vishnu.vithala](https://devforum.zoom.us/u/vishnu.vithala)\
**Post date:** [January 17, 2023, 5:57am UTC](https://devforum.zoom.us/t/errortype-2003-error-details-16-followed-by-error-type-2008-error-details-16-ios/81559/1 "2023-01-17T05:57:48Z")

</div>

I looked through all the forums and tried updating the jwt key multiple times and pasting it in the appDelegate.h under #define kAppToken. When I execute the code and build the app on my iphone and create a new session, the app starts the video and quits with the error provided in the title. This is using the VideoSDK for the ios v1.6.1. This is payload I am using for creating the JWT token. This is me trying to run the quickStart Sample app  
{  
“app\_key”: “xxxx”,  
“version”: 1,  
“tpc”: “myName”,  
“iat”:1673933582,  
“exp”:1674883982,  
“user\_identity”:“myName”,  
“role\_type”:0  
}

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [January 17, 2023, 11:08pm UTC](https://devforum.zoom.us/t/errortype-2003-error-details-16-followed-by-error-type-2008-error-details-16-ios/81559/2 "2023-01-17T23:08:49Z")

</div>

@vishnu.vithala,

Thank you for posting in the Zoom Developer Forum – happy to help! As a start, can you confirm whether you’ve validated that the JWT was generated correctly? If not, you can do so using [JWT.io](http://JWT.io).

> **[JWT.IO](https://jwt.io/)**
>
> JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties.

---

<div class="post-metadata">

**Author:** ![vishnu.vithala](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vishnu.vithala/32/44581_2.png) [@vishnu.vithala](https://devforum.zoom.us/u/vishnu.vithala)\
**Post date:** [January 18, 2023, 12:52am UTC](https://devforum.zoom.us/t/errortype-2003-error-details-16-followed-by-error-type-2008-error-details-16-ios/81559/3 "2023-01-18T00:52:09Z")

</div>

Hello Donte, the token was accurately generated [jwt.io](http://jwt.io). One things I noticed in release notes is that the ios latest version is compatible with XCODE 12. I am using XCODE 14 to build. Do you think that matters?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [January 19, 2023, 4:37am UTC](https://devforum.zoom.us/t/errortype-2003-error-details-16-followed-by-error-type-2008-error-details-16-ios/81559/4 "2023-01-19T04:37:55Z")

</div>

@vishnu.vithala ,

Thank you for your response. I have seen reports of XCODE 14 causing an issue with [JWT.io](http://JWT.io). Are you seeing the same result when using a different session name than in the JWT token? For the token, as a test, can you try the session name with the value “myName” when creating or joining a session?

---

<div class="post-metadata">

**Author:** ![vishnu.vithala](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vishnu.vithala/32/44581_2.png) [@vishnu.vithala](https://devforum.zoom.us/u/vishnu.vithala)\
**Post date:** [January 19, 2023, 5:54am UTC](https://devforum.zoom.us/t/errortype-2003-error-details-16-followed-by-error-type-2008-error-details-16-ios/81559/5 "2023-01-19T05:54:46Z")

</div>

Hello Donte, I tried with a different name and get the same error. I changed the " app\_key" to appKey and now I am getting a different error  
**2023-01-18 21:53:31.691495-0800 ZoomVideoSample[7421:390880] ErrorType========2014, Parameter error when joining the session**

**2023-01-18 21:53:31.691798-0800 ZoomVideoSample[7421:390880] ErrorDetails========5003**

**2023-01-18 21:53:31.710638-0800 ZoomVideoSample[7421:390880] ErrorType========2008, Disconnecting session…**

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [January 19, 2023, 4:10pm UTC](https://devforum.zoom.us/t/errortype-2003-error-details-16-followed-by-error-type-2008-error-details-16-ios/81559/6 "2023-01-19T16:10:26Z")

</div>

@vishnu.vithala ,  
Strange! It looks like the [“user\_identity” property is optiona](https://marketplace.zoom.us/docs/sdk/video/auth/#2-generate-the-video-sdk-jwt)l, can you try to generate the JWT without it? I just tested using XCODE 14.2 to build on my end and was able to Join the session on my IOS device. So I do not think the “user\_identity” or the `app_key` property is the source of the problem. Here is a screenshot of the python script I used to generate the JWT along with my device screen recording.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/f/ff01eed02bc0f15d25eaf004c22074994e666e97.png)

Device Screen Recording :

---

<div class="post-metadata">

**Author:** ![vishnu.vithala](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vishnu.vithala/32/44581_2.png) [@vishnu.vithala](https://devforum.zoom.us/u/vishnu.vithala)\
**Post date:** [January 19, 2023, 4:32pm UTC](https://devforum.zoom.us/t/errortype-2003-error-details-16-followed-by-error-type-2008-error-details-16-ios/81559/7 "2023-01-19T16:32:37Z")

</div>

Re-tried it with the same parameters that you have in your script in [JWT.io](http://JWT.io). No avail. Same Error(2003, Error Details=16).  
Be sure to remove PII before posting on the Zoom Developer Forum.  
**Screenshot :**  
[REDACTED]

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [January 19, 2023, 7:19pm UTC](https://devforum.zoom.us/t/errortype-2003-error-details-16-followed-by-error-type-2008-error-details-16-ios/81559/8 "2023-01-19T19:19:00Z")

</div>

Thank you for the screenshot, @vishnu.vithala ! Can you share whether [JWT.IO](http://JWT.IO) shows "Signature Verified " when you enter the value for your secret?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/b/4b3597c91ea6b53df501f2fadc02edd2b0f9e641.png)

---

<div class="post-metadata">

**Author:** ![vishnu.vithala](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vishnu.vithala/32/44581_2.png) [@vishnu.vithala](https://devforum.zoom.us/u/vishnu.vithala)\
**Post date:** [January 19, 2023, 7:26pm UTC](https://devforum.zoom.us/t/errortype-2003-error-details-16-followed-by-error-type-2008-error-details-16-ios/81559/9 "2023-01-19T19:26:57Z")

</div>

Be sure to remove PII before posting on the Zoom Developer Forum.  
**Screenshot :**  
[REDACTED]

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [January 19, 2023, 8:37pm UTC](https://devforum.zoom.us/t/errortype-2003-error-details-16-followed-by-error-type-2008-error-details-16-ios/81559/10 "2023-01-19T20:37:52Z")

</div>

@vishnu.vithala ,

What language are you using to generate the signature? Please share a snippet as I think the issue is the script used to generate the signature.

---

<div class="post-metadata">

**Author:** ![vishnu.vithala](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vishnu.vithala/32/44581_2.png) [@vishnu.vithala](https://devforum.zoom.us/u/vishnu.vithala)\
**Post date:** [January 19, 2023, 9:10pm UTC](https://devforum.zoom.us/t/errortype-2003-error-details-16-followed-by-error-type-2008-error-details-16-ios/81559/11 "2023-01-19T21:10:25Z")

</div>

Not sure which language you are referring to.I am using the [JWT.IO](http://JWT.IO) to generate the signature then I just copy paste it into XCode. As shown in the screenshot. I just noticed the “Enter your VSDK here without wrapping it” in red. I was not populating that before. Let me try that and give it a shot.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/b/3bd03b0fd5749750b3a57358d59e16b5119251f9.png)

---

<div class="post-metadata">

**Author:** ![vishnu.vithala](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vishnu.vithala/32/44581_2.png) [@vishnu.vithala](https://devforum.zoom.us/u/vishnu.vithala)\
**Post date:** [January 20, 2023, 10:19pm UTC](https://devforum.zoom.us/t/errortype-2003-error-details-16-followed-by-error-type-2008-error-details-16-ios/81559/12 "2023-01-20T22:19:13Z")

</div>

That worked! I was not putting in my secret key

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [January 21, 2023, 12:46am UTC](https://devforum.zoom.us/t/errortype-2003-error-details-16-followed-by-error-type-2008-error-details-16-ios/81559/13 "2023-01-21T00:46:44Z")

</div>

Awesome @vishnu.vithala! Glad to hear that helped resolve the behavior you were seeing and thanks for sharing this update with us!

---

<div class="post-metadata">

**Author:** ![vishnu.vithala](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vishnu.vithala/32/44581_2.png) [@vishnu.vithala](https://devforum.zoom.us/u/vishnu.vithala)\
**Post date:** [January 30, 2023, 11:13pm UTC](https://devforum.zoom.us/t/errortype-2003-error-details-16-followed-by-error-type-2008-error-details-16-ios/81559/14 "2023-01-30T23:13:57Z")

</div>

Hello Donte, I have a new problem wherein I am not able to trigger this portion of the code in the iOS starter code.

```auto
#pragma mark **- audio rawdata delegate -**

- ( **void** )onMixedAudioRawDataReceived:(ZoomVideoSDKAudioRawData *)rawData

{

NSLog(@"onMixedAudioRawDataReceived %@", rawData);

}

- ( **void** )onOneWayAudioRawDataReceived:(ZoomVideoSDKAudioRawData *)rawData user:(ZoomVideoSDKUser *)user

{

NSLog(@"onOneWayAudioRawDataReceived %@", rawData);}

- ( **void** )onSharedAudioRawDataReceived:(ZoomVideoSDKAudioRawData *)rawData

{

NSLog(@"onSharedAudioRawDataReceived %@", rawData);

}

```

---

<div class="post-metadata">

**Author:** ![rachelgomez161999](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rachelgomez161999/32/35985_2.png) [@rachelgomez161999](https://devforum.zoom.us/u/rachelgomez161999)\
**Post date:** [May 12, 2023, 6:02am UTC](https://devforum.zoom.us/t/errortype-2003-error-details-16-followed-by-error-type-2008-error-details-16-ios/81559/15 "2023-05-12T06:02:25Z")

</div>

The error message “Authentication failed with status code 401” indicates that the authentication process for your app has failed. This can be caused by a variety of issues, including incorrect or expired JWT tokens, incorrect app keys or secret keys, or network connectivity issues.

Based on the information provided, it seems that you have already tried updating the JWT key multiple times and pasting it in the appropriate location in your code. However, it is possible that there is an error in the way you are generating the JWT token, or that the token has expired.

To troubleshoot this issue, you may want to try the following steps:

Double-check that the app key and secret key you are using are correct and match those provided by the VideoSDK.

Make sure that the system time on your device is accurate, as an incorrect time can cause issues with JWT token validation.

Try generating a new JWT token with a longer expiration time and see if that resolves the issue.

Check the network connectivity on your device and ensure that it is not being blocked by a firewall or other security software.

If none of these steps resolves the issue, you may want to reach out to the support team for the VideoSDK for further assistance.

Regards,  
Rachel Gomez
