# 1507/1508 error when creating session

**URL:** <https://devforum.zoom.us/t/1507-1508-error-when-creating-session/66041>\
**Category:** Android\
**Created:** [March 18, 2022, 12:57pm UTC](https://devforum.zoom.us/t/1507-1508-error-when-creating-session/66041 "2022-03-18T12:57:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jernej.jerin](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jernej.jerin/32/36106_2.png) [@jernej.jerin](https://devforum.zoom.us/u/jernej.jerin)\
**Post date:** [March 18, 2022, 12:57pm UTC](https://devforum.zoom.us/t/1507-1508-error-when-creating-session/66041/1 "2022-03-18T12:57:48Z")

</div>

**Description**  
Downloaded latest Video-SDK example. Tried all below options:

- Using generated JWT token from the marketplace in Constants.
- Setting JWT Token in Constants to empty string and instead using Api Key/Secret in JWTUtil to generate JWT token on the fly.
- Trying to generate JWT Token using SDK Key/Secret as the [documentation](https://marketplace.zoom.us/docs/sdk/video/auth/) is actually talking about SDK key/secret, not API Key/Secret. But the codebase actually uses apiKey/apiSecret for variable names so this is very confusing.

Nevertheless, upon session creation always get back error: **Session error: 1508** or **Session error: 1507**

**Which Android Video SDK version?**  
Latest version v1.2.2

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Open demo app
2. Click on Create button
3. Leave default values for session, click Create.

**Smartphone (please complete the following information):**

- Device: Samsung Galaxy A52s
- OS: Android 12

---

<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:** [March 21, 2022, 7:17pm UTC](https://devforum.zoom.us/t/1507-1508-error-when-creating-session/66041/2 "2022-03-21T19:17:51Z")

</div>

Hi @jernej.jerin, thanks for using our SDK.

Based on the error codes you are seeing, this is related to the `tpc` field of your JWT not matching the `sessionName` value you’ve provided when trying to join the session. The values of these two fields must always be the same.

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:** [May 20, 2022, 1:06am UTC](https://devforum.zoom.us/t/1507-1508-error-when-creating-session/66041/4 "2022-05-20T01:06:35Z")

</div>

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