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

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

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)?

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)

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.

Hey @fodun.developer,

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

Let me know if that helps! :slight_smile:


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?


Hey @fodun.developer,

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