# iOS Mobile SDK Kicking Me Out Of Session with Errors 16 and 2003

**URL:** <https://devforum.zoom.us/t/ios-mobile-sdk-kicking-me-out-of-session-with-errors-16-and-2003/40494>\
**Category:** iOS\
**Created:** [January 13, 2021, 9:33pm UTC](https://devforum.zoom.us/t/ios-mobile-sdk-kicking-me-out-of-session-with-errors-16-and-2003/40494 "2021-01-13T21:33:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ncoelius](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ncoelius/32/21434_2.png) [@ncoelius](https://devforum.zoom.us/u/ncoelius)\
**Post date:** [January 13, 2021, 9:33pm UTC](https://devforum.zoom.us/t/ios-mobile-sdk-kicking-me-out-of-session-with-errors-16-and-2003/40494/1 "2021-01-13T21:33:56Z")

</div>

**Description**  
After downloading the Zoom Instant SDK sample app, configuring the provisioning profiles, and setting up a JWT, I am unable to access a room.

I launch the app, go to create a session, enter the same room name used in the JWT, and click create. I see the camera work for a second, but then I am immediately kicked out with errors 16 and 2003 printed to the console.

Looking into those in the documentation was not particularly revealing, basically just “try again” or “double check inputs”

**Which version?**  
v5.4.54520.1229, maybe? Whichever version was downloaded today from the marketplace.

**Smartphone (please complete the following information):**  
iPhone XS  
iOS 14.3

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 14, 2021, 5:21pm UTC](https://devforum.zoom.us/t/ios-mobile-sdk-kicking-me-out-of-session-with-errors-16-and-2003/40494/2 "2021-01-14T17:21:02Z")

</div>

Hey @ncoelius,

Thanks for using the dev forum!

I am sorry this is happening. However, with some troubleshooting, I think we can get you going with the sample app 🙂

My first suspicion is that there is an issue with the JWT. The documentation looks to have a typo in the payload example. There should be no quotes around the value for the exp key. Also, please verify that the times are in epoch format.

Here is an example payload that I just used that worked:  
{  
“app\_key”: “myappkeyhere”,  
“version”: 1,  
“user\_identity”: “michael”,  
“iat”: 1610643975,  
“exp”: 1610730374,  
“tpc”: “test”  
}

Also, if you used [jwt.io](http://jwt.io), please make sure you left “secret base64 encoded unchecked”.

One other thing to check is that you have provided a domain in the appdelegate.h. I use “[zoom.us](http://zoom.us)” for this field.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![ncoelius](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ncoelius/32/21434_2.png) [@ncoelius](https://devforum.zoom.us/u/ncoelius)\
**Post date:** [January 14, 2021, 6:04pm UTC](https://devforum.zoom.us/t/ios-mobile-sdk-kicking-me-out-of-session-with-errors-16-and-2003/40494/3 "2021-01-14T18:04:18Z")

</div>

Still getting kicked out, looks like. This is the JWT I used via [jwt.io](http://jwt.io/):

{  
“app\_key”:"[SDK Key]",  
“version”: 1,  
“user\_identity”: “Nick”,  
“iat”: 1610646797,  
“exp”: 1610716990,  
“tpc”: “test”  
}

kSDKDomain is set to “[zoom.us](http://zoom.us/)”

Thoughts?

I tried the JWT you provided and no dice there, either. Half second of camera functionality and then kicked out of the room.

Is there something wrong with the app we stood up, maybe? An entitlement we’re missing for our SDK key?

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 14, 2021, 6:28pm UTC](https://devforum.zoom.us/t/ios-mobile-sdk-kicking-me-out-of-session-with-errors-16-and-2003/40494/4 "2021-01-14T18:28:16Z")

</div>

Hey @ncoelius,

That is interesting. Just to make sure we have all the info possible:

- Are you using a password when joining?
- Can you confirm that “test” is lowercase and with no space appended to it before you click “create”? (I have made this mistake before since the iOS keyboard automatically changes words sometimes)
- You are not using a client SDK Key or API key correct?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![ncoelius](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ncoelius/32/21434_2.png) [@ncoelius](https://devforum.zoom.us/u/ncoelius)\
**Post date:** [January 14, 2021, 6:31pm UTC](https://devforum.zoom.us/t/ios-mobile-sdk-kicking-me-out-of-session-with-errors-16-and-2003/40494/5 "2021-01-14T18:31:36Z")

</div>

Hey @Michael_Condon

- No Password
- test is all lowercase with no space (I double checked that extra space too, one of the many annoying quirks of iOS)
- Based on trying to build another app the credentials I have are for a “Fully Customizable SDK,” which I believe is correct?

Linked is a video of the behavior. Please excuse my caveman beard, it’s been a long quarantine.

[![](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/8/c80e38e03afe4824f88f151d296b8f21b46abcc3.jpeg "Odd Zoom SDK Behavior") ](https://www.youtube.com/watch?v=moEc7K09LGc)

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 14, 2021, 6:51pm UTC](https://devforum.zoom.us/t/ios-mobile-sdk-kicking-me-out-of-session-with-errors-16-and-2003/40494/6 "2021-01-14T18:51:06Z")

</div>

Hey @ncoelius,

In regards to the beard, don’t apologize; if anything, I am impressed.  
I am not seeing anything you are doing that looks incorrect.  
To be double-sure, you are using the traditional quotes in the JWT payload and not “” right?  
You didn’t modify any of the code within the sample app, besides adding the domain and JWT?  
Was your SDK Key issued today?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![ncoelius](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ncoelius/32/21434_2.png) [@ncoelius](https://devforum.zoom.us/u/ncoelius)\
**Post date:** [January 14, 2021, 6:56pm UTC](https://devforum.zoom.us/t/ios-mobile-sdk-kicking-me-out-of-session-with-errors-16-and-2003/40494/7 "2021-01-14T18:56:15Z")

</div>

SDK Key was issued a couple of days ago, when a coworker downloaded the SDK and sample app.

[JWT.io](http://JWT.io) didn’t complain about my quotes, so I’m pretty sure they’re “”

No modifications were made besides changing the value of the JWT inside of the quotation marks for kAppToken. As this is a dummy app with no market value I’m just going to post that here:

`#define kAppToken @"https://jwt.io/#debugger-io?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBfa2V5Ijoidm9UNXcxcDJwUHpoM0FnOXgyYVJ2SkJramtsSnE4UlFqaGI6Ik5pY2siLCJpYXQiOjE2MTA2NDM5NzUsImV4cCI6MTYxMDczMDM3NCwidHBjIjoidGVzdCJ9.bxjO9FeIzkox68aUsbHXDsd9mhZStqCG7w-gmHCfZjY"`

That’s straight off of clicking Share JWT…did I generate that wrong, somehow?

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 14, 2021, 7:03pm UTC](https://devforum.zoom.us/t/ios-mobile-sdk-kicking-me-out-of-session-with-errors-16-and-2003/40494/8 "2021-01-14T19:03:04Z")

</div>

Hey @ncoelius,

Oh I see! Yes, dont copy it from the “Share JWT” button copy the actual text from the debugger screen. There should not be a “`https://jwt.io/#debugger-io?token=`” or anything like that.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![ncoelius](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ncoelius/32/21434_2.png) [@ncoelius](https://devforum.zoom.us/u/ncoelius)\
**Post date:** [January 14, 2021, 7:04pm UTC](https://devforum.zoom.us/t/ios-mobile-sdk-kicking-me-out-of-session-with-errors-16-and-2003/40494/9 "2021-01-14T19:04:49Z")

</div>

Well now I feel silly. Wild that it still “worked” to open the room in the first place when the JWT was so very wrong.

Anyways, thanks! First time messing with JWTs so I had no idea what I should or shouldn’t have been looking at!

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 14, 2021, 7:06pm UTC](https://devforum.zoom.us/t/ios-mobile-sdk-kicking-me-out-of-session-with-errors-16-and-2003/40494/10 "2021-01-14T19:06:17Z")

</div>

@ncoelius,

Awesome! I am so glad that worked! I understand, there should definitely be a clearer error from the SDK. I wouldnt be too hard on yourself JWT’s are super finicky.

Thanks!  
Michael
