# Empty Downloads

**URL:** <https://devforum.zoom.us/t/empty-downloads/44525>\
**Category:** API and Webhooks\
**Created:** [March 1, 2021, 2:05pm UTC](https://devforum.zoom.us/t/empty-downloads/44525 "2021-03-01T14:05:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppo](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@ppo](https://devforum.zoom.us/u/ppo)\
**Post date:** [March 1, 2021, 2:05pm UTC](https://devforum.zoom.us/t/empty-downloads/44525/1 "2021-03-01T14:05:33Z")

</div>

Hello Team,

I’ve been getting an error when I tried downloading recorded meeting from Zoom.  
See the detailed explanation below.

1. When I tried to download the recorded file, the downloaded is successful but file is empty and it is 0KB. But the Original file size is about 3 MB.

Programming language and Framework: NODE  
Authentication method: OAuth  
Errors: There is no error logged

```auto
exports.addZoomRecordingToIntaviewer = asyncHandler(async (req, res, next) => {
  const { token } = req.body;
  const { meetingId } = req.params;
  const user = req.user;
  const url = `https://api.zoom.us/v2/meetings/${meetingId}/recordings`;

  const meetingData = await axios.get(url, {
    headers: {
      Authorization: `Bearer ${token}`,
    },
  });
  if (!meetingData) {
    return next(new ErrorResponse("Meeting Does Not Exists", 403));
  }
  const meeting = meetingData.data;

  const { id, recording_files, duration } = meeting;
  const urlDown = `${recording_files[0].download_url}?access_token=${token}`;

  function downloadFile(downloadUrl, name) {
    const req = https.get(downloadUrl, function (res) {
      const fileStream = fs.createWriteStream(`zoomer/${name}.mp4`);
      res.pipe(fileStream);
      fileStream.on("error", function (err) {
        console.log("Error writing to the stream");
        console.log(err);
      });
      fileStream.on("finish", function () {
        fileStream.close();
        console.log("done");
      });
    });
    req.on("error", function (err) {
      console.log("Error http request");
      console.log(err);
    });
  }
  downloadFile(urlDown, id);
});

```

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 1, 2021, 11:01pm UTC](https://devforum.zoom.us/t/empty-downloads/44525/2 "2021-03-01T23:01:40Z")

</div>

Hey @ppo,

Thank you for reaching out to the Zoom Developer Forum. Please test navigating to the download\_url ( with the access\_token) in your browser. Let me know if you’re seeing any errors on the page or within the browser console when doing so.

This will help us to confirm if there is an issue with the recording itself or with the code reading the file.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![ppo](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@ppo](https://devforum.zoom.us/u/ppo)\
**Post date:** [March 2, 2021, 8:54am UTC](https://devforum.zoom.us/t/empty-downloads/44525/3 "2021-03-02T08:54:11Z")

</div>

Good day,

No I did not get any errors, instead I got a prompt to download the video and when I did, the video downloaded without any problems.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 3, 2021, 11:39pm UTC](https://devforum.zoom.us/t/empty-downloads/44525/4 "2021-03-03T23:39:23Z")

</div>

Hey @ppo,

Thank you for testing that! Please send an email to [developersupport@zoom.us](mailto:developersupport@zoom.us) with a link to this thread. In that email, please include the meeting ID involved, the meeting ID as well as the access\_token that you’re using for this request.

I’ll test this out on my end and reach out to an internal resource if necessary.

Thanks,  
Max

---

<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 3, 2021, 9:40am UTC](https://devforum.zoom.us/t/empty-downloads/44525/5 "2021-04-03T09:40:15Z")

</div>

Closed on April 3, 2021, 9:40am UTC

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