# Download URL is not working

**URL:** <https://devforum.zoom.us/t/download-url-is-not-working/8348>\
**Category:** API and Webhooks\
**Created:** [March 2, 2020, 5:00pm UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348 "2020-03-02T17:00:37Z")\
**Posts on this page:** 20\
**Page:** 2

<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:** [March 5, 2020, 8:43pm UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/21 "2020-03-05T20:43:34Z")

</div>

Marking @Emanuel_Aguirre’s post as the solution for a work around while we work on a fix.

> [@Download URL is not working](https://devforum.zoom.us/t/download-url-is-not-working/8348/17):
>
> Native file\_get\_contents($downloadURL) does not work. I think the problem is when doing stream ¿maybe Zoom disabled this option? Using GuzzleHttp\Client it does work with stream = false $client = new Client([// 'stream' =\> true, 'stream' =\> false, 'allow\_redirects' =\> true, 'cookies' =\> true]); $response = $client-\>get($downloadURL); $file = $response-\>getBody()-\>getContents(); To Zoom: ¿have you disabled streaming recordings?

Thanks,  
Tommy

---

<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:** [March 6, 2020, 4:46pm UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/22 "2020-03-06T16:46:33Z")

</div>

Hey @alex.jezior, @videosocials, @te_zoom.admin, @Emanuel_Aguirre,

Please see this message from our engineers:

“Seems like the difference between our working curl download and not working curl download is the option ‘-L’, which is used to support redirect.”

I also checked the php code you pasted above, a redirect flag was missed.

```
    `CURLOPT_FOLLOWLOCATION => true, // follow redirects `

```

Try running curl with -L or add CURLOPT\_FOLLOWLOCATION option in their php code.

Let me know if this fixes the issue.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![Emanuel\_Aguirre](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@Emanuel\_Aguirre](https://devforum.zoom.us/u/Emanuel_Aguirre)\
**Post date:** [March 6, 2020, 5:09pm UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/23 "2020-03-06T17:09:01Z")

</div>

> [@tommy](#):
>
> Tommy

Hi Tommy, I had that option implemented along with cookies, I think that is not the problem but instead the issue is when trying to stream the file.  
I can tell you that it is a common practice to stream large files instead of fully downloading them into memory or disk.  
This approach allows to send the file directly from Zoom to AWS s3 without having the file in our middle app server.

Hope it makes sense and your team fix this soon. Let me know if I need to open a new forum topic for this stream issue.

---

<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:** [March 6, 2020, 8:23pm UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/24 "2020-03-06T20:23:57Z")

</div>

Hey @Emanuel_Aguirre,

Thanks for these additional details. I will pass this along to our engineers and we will get back to you.

Thanks,  
Tommy

---

<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:** [March 9, 2020, 3:33pm UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/25 "2020-03-09T15:33:05Z")

</div>

Hey @te_zoom.admin, @alex.jezior, @videosocials, @Emanuel_Aguirre,

Please try adding the redirect flag like I stated above and let me know if that fixes the issue.

> [@Download URL is not working](https://devforum.zoom.us/t/download-url-is-not-working/8348/22):
>
> Hey @alex.jezior, @videosocials, @te_zoom.admin, @Emanuel_Aguirre, Please see this message from our engineers: “Seems like the difference between our working curl download and not working curl download is the option ‘-L’, which is used to support redirect.” I also checked the php code you pasted above, a redirect flag was missed. `CURLOPT_FOLLOWLOCATION =\> true, // follow redirects ` Try running curl with -L or add CURLOPT\_FOLLOWLOCATION option in their php code. Let me know if thi…

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![selva.iyyamperumal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/selva.iyyamperumal/32/50293_2.png) [@selva.iyyamperumal](https://devforum.zoom.us/u/selva.iyyamperumal)\
**Post date:** [March 12, 2020, 11:02am UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/26 "2020-03-12T11:02:36Z")

</div>

> [@tommy](#):
>
> ZOOM-141270

Hi All,  
Any update in this? Is it working now? We also faced same issues like:  
zero size downloaded files, connection timed out errors, etc.

Thanks.  
Regards,  
Selva

---

<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:** [March 12, 2020, 5:23pm UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/27 "2020-03-12T17:23:10Z")

</div>

Hey @selva.iyyamperumal,

Please see my post above for the current solution.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![selva.iyyamperumal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/selva.iyyamperumal/32/50293_2.png) [@selva.iyyamperumal](https://devforum.zoom.us/u/selva.iyyamperumal)\
**Post date:** [March 13, 2020, 4:44pm UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/28 "2020-03-13T16:44:14Z")

</div>

Hi Tom,  
We are using node server and using Zoom API to download from Zoom cloud. Please let us know if you need more info.

Looks like our customers having problem like below (from our customers/user admin):  
"She records and gets the email that the video is recorded from zoom (however that is also taking longer then normal so this could be a zoom issue), when she clicks that link it says file not found in zoom. "

Just informing you if it could help any.

Thanks.  
Regards  
Selva

---

<div class="post-metadata">

**Author:** ![selva.iyyamperumal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/selva.iyyamperumal/32/50293_2.png) [@selva.iyyamperumal](https://devforum.zoom.us/u/selva.iyyamperumal)\
**Post date:** [March 13, 2020, 5:58pm UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/29 "2020-03-13T17:58:38Z")

</div>

Hi Tom,  
Connection reset error:  
2020-03-13 10:44:03 -07:00: download url = [https://zoom.us/rec/download/](https://zoom.us/rec/download/)… for email=   
2020-03-13 10:49:34 -07:00: Error: read ECONNRESET

Please check.  
Thanks.  
Regards,  
Selva

---

<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:** [March 13, 2020, 9:43pm UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/30 "2020-03-13T21:43:47Z")

</div>

Hey @selva.iyyamperumal,

Thanks for sharing this.

> [@selva.iyyamperumal](#):
>
> We are using node server and using Zoom API to download from Zoom cloud. Please let us know if you need more info.

More info would be great, including your code snippet.

> [@selva.iyyamperumal](#):
>
> Looks like our customers having problem like below (from our customers/user admin):  
> "She records and gets the email that the video is recorded from zoom (however that is also taking longer then normal so this could be a zoom issue), when she clicks that link it says file not found in zoom. "

Can you please share the recording URL with me so I can debug? Feel free to private message it to me.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![selva.iyyamperumal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/selva.iyyamperumal/32/50293_2.png) [@selva.iyyamperumal](https://devforum.zoom.us/u/selva.iyyamperumal)\
**Post date:** [March 15, 2020, 4:54pm UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/31 "2020-03-15T16:54:02Z")

</div>

Hi Tom,  
Please check your private message. Given both code and the recording Url.

Thanks.  
Regards,  
Selva

---

<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:** [March 16, 2020, 6:56pm UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/32 "2020-03-16T18:56:22Z")

</div>

Will do!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![selva.iyyamperumal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/selva.iyyamperumal/32/50293_2.png) [@selva.iyyamperumal](https://devforum.zoom.us/u/selva.iyyamperumal)\
**Post date:** [March 30, 2020, 4:20pm UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/33 "2020-03-30T16:20:00Z")

</div>

Hi Tom,  
Still we have issues in downloading files from Zoom cloud. We are getting lots of ECONNRESET error. Not happening all the meetings though.

2020-03-28 **06:13:05** -07:00: download url =   
2020-03-28 **06:16:46** -07:00: Error: read ECONNRESET

2020-03-26 22:33:42 -07:00: Callback - from Zoom  
2020-03-26 22:34:42 -07:00: Error from Zoom = Error: socket hang up

and also,  
our TCP sockets are in CLOSE\_WAIT state

We are getting all these errors till now today. Because of that either we could not download the files or could not download entire file.

Thanks.  
Regards,  
Selva

---

<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:** [March 31, 2020, 5:00am UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/34 "2020-03-31T05:00:31Z")

</div>

Hey @selva.iyyamperumal,

We will continue looking into the issue and keep you updated.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![selva.iyyamperumal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/selva.iyyamperumal/32/50293_2.png) [@selva.iyyamperumal](https://devforum.zoom.us/u/selva.iyyamperumal)\
**Post date:** [April 6, 2020, 4:12pm UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/35 "2020-04-06T16:12:07Z")

</div>

Hi Tom,  
Please share the timeline to fix this issue, if any.

we have been facing this issue more than 4 weeks now. We need to decide whether we need to continue run our connectors or not.

Our customers are not happy to continue the service. Hope you understand. Please escalate the issue.

Thanks.  
Regards,  
Selva

---

<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:** [April 7, 2020, 12:25am UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/36 "2020-04-07T00:25:04Z")

</div>

Hey @selva.iyyamperumal,

Just pinged engineering again to look into this. Apologies as we are very busy, I will keep you updated.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![evgeniya.kuzina](https://avatars.discourse-cdn.com/v4/letter/e/50afbb/32.png) [@evgeniya.kuzina](https://devforum.zoom.us/u/evgeniya.kuzina)\
**Post date:** [April 15, 2020, 9:08am UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/37 "2020-04-15T09:08:42Z")

</div>

Hello, Tom!

Is there any update?  
We continue to get 502 on download url.

Server error: `GET https://{name}.zoom.us/rec/download/{code}` resulted in a `502 Bad Gateway` response:

502 Bad Gateway
# 502 Bad Gateway
 (truncated...)

Thank you in advance!  
Best Regards,  
Evgeniya

---

<div class="post-metadata">

**Author:** ![nate123](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@nate123](https://devforum.zoom.us/u/nate123)\
**Post date:** [April 15, 2020, 11:45pm UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/38 "2020-04-15T23:45:49Z")

</div>

Hi @tommy - Adding another variation to the general problem of download URLs not working below. The accepted answer of using a non-streaming approach doesn’t work for me.

**Problem** : Files do not fully download. The file size after using the download URL does not match the size of the recording on Zoom servers – files are always around 15% smaller than on the server. As a result, I cannot play them back once downloaded. Applies to both M4A and MP4s.

**Interesting Details**

- Only affects my more recent recordings. The download URLs from March 2020 download in full successfully.
- Pasting the download URL into the browser works - the file is downloaded completely

**Examples**  
Below are all the curl & Python attempts I’ve tried. They all result in the same thing - the file is only partially downloaded.

Curl:

```auto
curl -L -v -o MyRec.m4a
curl -L -v -o MyRec.mp4

```

Python (3.7):

```auto
import requests
import shutil
import urllib.request
import wget

def wget_test(url, filename):
    wget.download(url, filename)

def download_urllib(url, filename):
    urllib.request.urlretrieve(url=url, filename=filename)

def download_chunk(url, filename):
    with requests.get(url, stream=False) as r:
        r.raise_for_status()
        with open(filename, 'wb') as f:
            for chunk in r.iter_content(chunk_size=8192):
                if chunk: # filter out keep-alive new chunks
                    f.write(chunk)
                    # f.flush()
    return filename

def download_file_stream(url, filename):
    with requests.get(url, stream=True) as r:
        with open(filename, 'wb') as f:
            shutil.copyfileobj(r.raw, f)
    return filename

def download_file_nostream(url, filename):
    with requests.get(url, stream=False) as r:
        with open(filename, 'wb') as f:
            shutil.copyfileobj(r.raw, f)
    return filenam

```

---

<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:** [April 16, 2020, 7:00am UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/39 "2020-04-16T07:00:07Z")

</div>

Hey @nate123, @evgeniya.kuzina,

Can you please try adding the JWT Token as a query param to the end of the download url?

`download_url?access_token=JWT_TOKEN_HERE`

[https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingget](https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingget)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![nate123](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@nate123](https://devforum.zoom.us/u/nate123)\
**Post date:** [April 16, 2020, 5:39pm UTC](https://devforum.zoom.us/t/download-url-is-not-working/8348/40 "2020-04-16T17:39:04Z")

</div>

Hey @tommy - Adding the JWT token to the download URL indeed fixes my issue of partial downloads. Thanks for quick reply!

[Previous page](https://devforum.zoom.us/t/download-url-is-not-working/8348.md?page=1)

[Next page](https://devforum.zoom.us/t/download-url-is-not-working/8348.md?page=3)
