# Zoom-oath-sample-app SyntaxError: Unexpected token u in JSON at position 0

**URL:** <https://devforum.zoom.us/t/zoom-oath-sample-app-syntaxerror-unexpected-token-u-in-json-at-position-0/21381>\
**Category:** API and Webhooks\
**Created:** [June 15, 2020, 3:18pm UTC](https://devforum.zoom.us/t/zoom-oath-sample-app-syntaxerror-unexpected-token-u-in-json-at-position-0/21381 "2020-06-15T15:18:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fodun.developer](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fodun.developer/32/10492_2.png) [@fodun.developer](https://devforum.zoom.us/u/fodun.developer)\
**Post date:** [June 15, 2020, 3:18pm UTC](https://devforum.zoom.us/t/zoom-oath-sample-app-syntaxerror-unexpected-token-u-in-json-at-position-0/21381/1 "2020-06-15T15:18:54Z")

</div>

**Description**  
I’m receiving the following error when following the Zoom OAuth Hello World tutorial on Github: [https://github.com/zoom/zoom-oauth-sample-app](https://github.com/zoom/zoom-oauth-sample-app)

**Error**  
SyntaxError: Unexpected token u in JSON at position 0  
at JSON.parse ()  
at Request.\_callback (/Users/username/Desktop/zoom-oauth-sample-app/index.js:29:25)  
at self.callback (/Users/username/Desktop/zoom-oauth-sample-app/node\_modules/request/request.js:185:22)  
at Request.emit (events.js:315:20)  
at Auth.onRequest (/Users/username/Desktop/zoom-oauth-sample-app/node\_modules/request/lib/auth.js:132:18)  
at Request.auth (/Users/username/Desktop/zoom-oauth-sample-app/node\_modules/request/request.js:1341:14)  
at /Users/username/Desktop/zoom-oauth-sample-app/index.js:82:12  
at Layer.handle [as handle\_request] (/Users/username/Desktop/zoom-oauth-sample-app/node\_modules/express/lib/router/layer.js:95:5)  
at next (/Users/username/Desktop/zoom-oauth-sample-app/node\_modules/express/lib/router/route.js:137:13)  
at Route.dispatch (/Users/username/Desktop/zoom-oauth-sample-app/node\_modules/express/lib/router/route.js:112:3)

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

**Which Endpoint/s?**  
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

**How To Reproduce (If applicable)**  
[https://zoom.us/oauth/authorize?client\_id=HC2jEssnQV6w2VZfpKfmCQ&response\_type=code&redirect\_uri=https%3A%2F%2Fe7fa221afb3b.ngrok.io](https://zoom.us/oauth/authorize?client_id=HC2jEssnQV6w2VZfpKfmCQ&response_type=code&redirect_uri=https%3A%2F%2Fe7fa221afb3b.ngrok.io)

**Screenshots (If applicable)**  
If applicable, add screenshots to help explain your problem.

**Additional context**  
I have created the .env file and included the clientID, clientSecret, and redirectURL using https. I’ve also included the redirectURL from ngrok in my app field “Redirect URL for OAuth” as well as the whitelisted URLs. I’ve double checked there are no additional characters in the .env file. I’ve also checked other forums and have not found a working solution.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 18, 2020, 7:21am UTC](https://devforum.zoom.us/t/zoom-oath-sample-app-syntaxerror-unexpected-token-u-in-json-at-position-0/21381/2 "2020-06-18T07:21:07Z")

</div>

Hey @fodun.developer,

Please see the following threads for the same issue that developers found the solution to:

> [@Automatically schedule meeting to non-organizational users with ID and Password](https://devforum.zoom.us/t/automatically-schedule-meeting-to-non-organizational-users-with-id-and-password/14019):
>
> Description Hi, I’m trying to schedule appointments to users that enter their e-mails and phones in my application (nothing to do with Zoom)and schedule a meeting with them, providing an ID and password to meet at the selected day and hour. Problem I’m just seeing documentation for zoom members and organizational stuff. I’ve visited [this](https://devforum.zoom.us/t/ttying-to-create-a-meeting-user-xyz-not-exist-or-not-belong-to-this-account/9958/) topic and a staff member recomends to “create an app en marketplace”, but in Marketplace there are different “apps” to be created: JWT, SDK, Oauth so I do…

> [@Zoom-oauth-sample-app Unexpected token u in JSON at position 0](https://devforum.zoom.us/t/zoom-oauth-sample-app-unexpected-token-u-in-json-at-position-0/11984):
>
> Description Sorry for the n00b question. In trying to follow the zoom-oauth-sample-app instructions, the POST instruction apparently returns an undefined body. Then JSON.parse fails in a way i don’t understand. Error Zoom Hello World app listening at PORT: 4000 SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse () at Request.\_callback (/Users/jnw/Zoom/zoom-oauth-sample-app/index.js:33:25) at self.callback (/Users/jnw/Zoom/zoom-oauth-sample-app/node\_modules/request/reques…

Let me know if that helps! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![fodun.developer](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/fodun.developer/32/10492_2.png) [@fodun.developer](https://devforum.zoom.us/u/fodun.developer)\
**Post date:** [June 18, 2020, 3:41pm UTC](https://devforum.zoom.us/t/zoom-oath-sample-app-syntaxerror-unexpected-token-u-in-json-at-position-0/21381/3 "2020-06-18T15:41:40Z")

</div>

Hi Tommy, I’d previously checked out those threads but still haven’t found a working solution to the error. Do you have additional tips?

Thanks,  
Fodun

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 23, 2020, 5:33pm UTC](https://devforum.zoom.us/t/zoom-oath-sample-app-syntaxerror-unexpected-token-u-in-json-at-position-0/21381/4 "2020-06-23T17:33:15Z")

</div>

Hey @fodun.developer,

Can you please provide steps to reproduce the issue with the sample app?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:24pm UTC](https://devforum.zoom.us/t/zoom-oath-sample-app-syntaxerror-unexpected-token-u-in-json-at-position-0/21381/5 "2020-08-21T22:24:01Z")

</div>

Closed on August 21, 2020, 10:24pm UTC


