# Error using Zoom API: The underlying connection was closed: An unexpected error occurred on a send

**URL:** <https://devforum.zoom.us/t/error-using-zoom-api-the-underlying-connection-was-closed-an-unexpected-error-occurred-on-a-send/46367>\
**Category:** API and Webhooks\
**Created:** [March 23, 2021, 6:34pm UTC](https://devforum.zoom.us/t/error-using-zoom-api-the-underlying-connection-was-closed-an-unexpected-error-occurred-on-a-send/46367 "2021-03-23T18:34:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![santa.kotta](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@santa.kotta](https://devforum.zoom.us/u/santa.kotta)\
**Post date:** [March 23, 2021, 6:34pm UTC](https://devforum.zoom.us/t/error-using-zoom-api-the-underlying-connection-was-closed-an-unexpected-error-occurred-on-a-send/46367/1 "2021-03-23T18:34:25Z")

</div>

## Using this template helps us debug your issues more effectively 🙂

**Description**  
I am trying to use Zoom API to CreateMeeting and GetUsers. The test run on Zoom Site works but when I copy the code and run it from my localhost I see below error.  
Tried using both OAuth and JWT, and see the error in both cases.

**Error**  
The underlying connection was closed: An unexpected error occurred on a send.

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

**Which Endpoint/s?**  
CreateMeeting

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

1. Request URL / Headers (without credentials) / Body
2. See error

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

**Additional context**  
Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![alexmayo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexmayo/32/27289_2.png) [@alexmayo](https://devforum.zoom.us/u/alexmayo)\
**Post date:** [March 24, 2021, 12:24am UTC](https://devforum.zoom.us/t/error-using-zoom-api-the-underlying-connection-was-closed-an-unexpected-error-occurred-on-a-send/46367/2 "2021-03-24T00:24:48Z")

</div>

Hi @santa.kotta,

This error seems specific to your localhost server setup.

I would try checking Stackoverflow or Google to see if there are any solutions out there. A quick search my end brings up a few other people who are receiving a similar message.

Thanks,  
Alex

---

<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:** [March 24, 2021, 4:38pm UTC](https://devforum.zoom.us/t/error-using-zoom-api-the-underlying-connection-was-closed-an-unexpected-error-occurred-on-a-send/46367/3 "2021-03-24T16:38:28Z")

</div>

Thanks for jumping in @alexmayo!

I agree that this seems like an issue with your local environment. Have you tried using a service like [ngrok](https://ngrok.com/) to bring your localhost online?

Best,  
Will

---

<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:** [April 24, 2021, 2:38am UTC](https://devforum.zoom.us/t/error-using-zoom-api-the-underlying-connection-was-closed-an-unexpected-error-occurred-on-a-send/46367/4 "2021-04-24T02:38:56Z")

</div>

Closed on April 24, 2021, 2:38am UTC

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