# Sample Node App using JWT issue

**URL:** <https://devforum.zoom.us/t/sample-node-app-using-jwt-issue/29871>\
**Category:** API and Webhooks\
**Created:** [September 11, 2020, 5:25am UTC](https://devforum.zoom.us/t/sample-node-app-using-jwt-issue/29871 "2020-09-11T05:25:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![njp-xyz](https://avatars.discourse-cdn.com/v4/letter/n/858c86/32.png) [@njp-xyz](https://devforum.zoom.us/u/njp-xyz)\
**Post date:** [September 11, 2020, 5:25am UTC](https://devforum.zoom.us/t/sample-node-app-using-jwt-issue/29871/1 "2020-09-11T05:25:20Z")

</div>

**Description**  
I have run into an issue while making a sample Zoom API call using JWT as directed on [https://github.com/zoom/zoom-api-jwt](https://github.com/zoom/zoom-api-jwt). I have successfully cloned that repository, installed the dependencies, installed the updated versions of Git and node in the process, input my API Key & Secret credentials and set the environment variable (NODE\_NEV=production). However, I have now hit a blockade and I cannot figure out why.

**Error**  
The issue I have run into is that when I start the node app (by type node index.js in the terminal), I get a message saying “Example app listening on port 3000!” but I am unable to type anything when I should be able to enter my email address and view the APIs response. When I exit the program by typing **Ctrl+C** , I get a message saying that " ‘whatever you typed after starting the node app’ is not recognized as an internal or external command,  
operable program or batch file."

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

**Which Endpoint/s?**  
Not sure. I am still a beginner at this. Please refer to the GitHub repository linked above.

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

1. Follow the steps on the GitHub repository
2. I had to install Git and node from scratch so doing so might help too.

**Screenshots (If applicable)**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/2/2303122e9a9d0dd453a084088df606a2a6b8e8c1.png)

**Additional context**  
This is my first time working with APIs which is why I begun with the tutorial and had to install a bunch of things to only even get started. Please let me know if I need the newly installed apps (Git, node, etc.) to work on a particular setting for this to work.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 14, 2020, 8:28pm UTC](https://devforum.zoom.us/t/sample-node-app-using-jwt-issue/29871/2 "2020-09-14T20:28:00Z")

</div>

Hey @njp-xyz,

It seems like this could be an issue specific to your environment or commands—have you had a chance to try testing out our API endpoints from within the documentation or using a tool like Postman? You may find this a bit simpler as you’re getting started.

From within our documentation, you can simply add your JWToken to the auth section:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/0/0267151c6c5277fa7c24b1a168a26c63d086db2f.png)

Let me know if you have better luck with this!

Best,  
Will

---

<div class="post-metadata">

**Author:** ![njp-xyz](https://avatars.discourse-cdn.com/v4/letter/n/858c86/32.png) [@njp-xyz](https://devforum.zoom.us/u/njp-xyz)\
**Post date:** [September 15, 2020, 1:13am UTC](https://devforum.zoom.us/t/sample-node-app-using-jwt-issue/29871/3 "2020-09-15T01:13:36Z")

</div>

Hi Will,  
Thanks for the response but I figured out what my issue was. It was something on my end due to my lack of knowledge of working with APIs.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 16, 2020, 6:56pm UTC](https://devforum.zoom.us/t/sample-node-app-using-jwt-issue/29871/4 "2020-09-16T18:56:59Z")

</div>

@njp-xyz No worries! I’m glad you figured it out.

Best,  
Will

---

<div class="post-metadata">

**Author:** ![marie](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@marie](https://devforum.zoom.us/u/marie)\
**Post date:** [September 23, 2020, 9:39am UTC](https://devforum.zoom.us/t/sample-node-app-using-jwt-issue/29871/5 "2020-09-23T09:39:21Z")

</div>

Any chance you could tell me what the issue was? I have exactly the same problem and also lack of knowledge of working with APIs.  
Thanks!

---

<div class="post-metadata">

**Author:** ![njp-xyz](https://avatars.discourse-cdn.com/v4/letter/n/858c86/32.png) [@njp-xyz](https://devforum.zoom.us/u/njp-xyz)\
**Post date:** [September 23, 2020, 9:52am UTC](https://devforum.zoom.us/t/sample-node-app-using-jwt-issue/29871/6 "2020-09-23T09:52:14Z")

</div>

Well, my issue was that I did not know that once you start the app on the terminal, you’re supposed to access port 3000 on your local host. Typing “localhost:3000” in the search bar on my browser did the trick for me.

---

<div class="post-metadata">

**Author:** ![marie](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@marie](https://devforum.zoom.us/u/marie)\
**Post date:** [September 23, 2020, 10:30am UTC](https://devforum.zoom.us/t/sample-node-app-using-jwt-issue/29871/7 "2020-09-23T10:30:05Z")

</div>

Ohhh I see! Thanks! I did not know either. What a simple solution.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 23, 2020, 9:14pm UTC](https://devforum.zoom.us/t/sample-node-app-using-jwt-issue/29871/8 "2020-09-23T21:14:40Z")

</div>

@njp-xyz Thanks for sharing your solution! 🙂

---

<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:** [October 24, 2020, 7:14am UTC](https://devforum.zoom.us/t/sample-node-app-using-jwt-issue/29871/9 "2020-10-24T07:14:41Z")

</div>

Closed on October 24, 2020, 7:14am UTC

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