# Errors\_Invalid\_Parameter when joining session

**URL:** <https://devforum.zoom.us/t/errors-invalid-parameter-when-joining-session/53205>\
**Category:** iOS\
**Created:** [June 26, 2021, 2:51pm UTC](https://devforum.zoom.us/t/errors-invalid-parameter-when-joining-session/53205 "2021-06-26T14:51:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![blindgaenger](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/blindgaenger/32/25789_2.png) [@blindgaenger](https://devforum.zoom.us/u/blindgaenger)\
**Post date:** [June 26, 2021, 2:51pm UTC](https://devforum.zoom.us/t/errors-invalid-parameter-when-joining-session/53205/1 "2021-06-26T14:51:25Z")

</div>

Hi there,

Recently I have a problem joining sessions.

In my older version with zoom-instant-sdk-iOS-1.0.2 the following happens:

- `joinSession` returns a session object
- `onError` returns Errors\_Session\_Invalid\_Param (code: 2013, details: 5003)

In the updated version with zoom-video-sdk-iOS-1.1.0 on the other hand:

- `joinSession` returns nil
- `onError` returns Errors\_Invalid\_Param (code: 7 details: 0)

The code to create the session context is the same in both cases, and has worked fine for the last few weeks. I checked the documentation and sample app again, but could not find any updates.

I can also imagine the problem is related to the issues reported for Android. The timing seems to be similar.

Please let me know if anything needs to be changed in the client implementation. Thanks!

Cheers,  
Bernd

---

<div class="post-metadata">

**Author:** ![blindgaenger](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/blindgaenger/32/25789_2.png) [@blindgaenger](https://devforum.zoom.us/u/blindgaenger)\
**Post date:** [June 27, 2021, 10:14am UTC](https://devforum.zoom.us/t/errors-invalid-parameter-when-joining-session/53205/2 "2021-06-27T10:14:14Z")

</div>

Hi there,

After debugging both versions again, I found the cause of the problem.

**zoom-instant-sdk:**

Since a session object was returned, I already suspected that it had another cause. Googling shows that the code 5003 in the zoom client indicates a connection problem. It would still be great if you could confirm this error detail code for the Video SDK.

Since then I have not gotten the error. I guess that was an unfortunate coincidence. Sorry about the confusion.

**zoom-video-sdk:**

I had noticed before that the `user_identity` in JWT is limited to 16 characters. (see [customUserId property does not exist - #8 by blindgaenger](https://devforum.zoom.us/t/customuserid-property-does-not-exist/47324/8))

Since “zoom-video-sdk-iOS-1.1.0” the limit has strangely decreased to 15 characters.

`"user_identity": "1234567890123456",` ← works in 1.0.2, but fails in 1.1.0  
`"user_identity": "123456789012345",` ← works in both versions

This is a pity, because I use UUIDs as user IDs, and the `customUserId` cannot be set yet. I would have liked the limit to increase. 🙃

Anyway, the solution is obvious, so I mark this thread as solved.

Cheers,  
Bernd

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [June 28, 2021, 5:36pm UTC](https://devforum.zoom.us/t/errors-invalid-parameter-when-joining-session/53205/3 "2021-06-28T17:36:41Z")

</div>

Hi @blindgaenger,

Thanks for posting the solution. Yes, unfortunately the limit has been decreased to 15 by the back end. We absolutely understand your concerns with this limitation and are keeping an eye on whether or not we may need to increase this in the future.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 29, 2021, 3:37am UTC](https://devforum.zoom.us/t/errors-invalid-parameter-when-joining-session/53205/4 "2021-07-29T03:37:21Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
