# Time out server to server out

**URL:** <https://devforum.zoom.us/t/time-out-server-to-server-out/83658>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [February 23, 2023, 9:04pm UTC](https://devforum.zoom.us/t/time-out-server-to-server-out/83658 "2023-02-23T21:04:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![estuardo.cacacho](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/estuardo.cacacho/32/45783_2.png) [@estuardo.cacacho](https://devforum.zoom.us/u/estuardo.cacacho)\
**Post date:** [February 23, 2023, 9:04pm UTC](https://devforum.zoom.us/t/time-out-server-to-server-out/83658/1 "2023-02-23T21:04:45Z")

</div>

hello I have a problem when consuming the service to generate a token in java gives me the error of java.net.SocketTimeoutException: Read timed out, Could you help me? This is the part where I use the service.

```
 HttpURLConnection conn = null;

    try {
        URL url = new URL(urlZoom);
        conn = (HttpURLConnection) url.openConnection();
        conn.setRequestProperty("Authorization", "Basic ZWpQQXBnX3FTTlNCWUZ5RDlOSn");
        conn.setRequestMethod("POST");
        conn.setDoOutput(true);
        conn.setUseCaches(false);

        //String input = obj.toString();
        OutputStream os = conn.getOutputStream();
        //os.write(input.getBytes());
        //os.write(obj.toJSONString);
        os.flush();

```

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [March 15, 2023, 7:44pm UTC](https://devforum.zoom.us/t/time-out-server-to-server-out/83658/2 "2023-03-15T19:44:47Z")

</div>

Hi @estuardo.cacacho  
Thanks for reaching out to the Zoom Developer Forum and welcome to our community!  
Are you still having this issue or were you able to troubleshoot it?

Cheers,  
Elisa

---

<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:** [March 18, 2024, 11:21am UTC](https://devforum.zoom.us/t/time-out-server-to-server-out/83658/3 "2024-03-18T11:21:43Z")

</div>

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