Recordings' Download URL responds error 1001: Forbidden

Description
i have coded an automatization to download recordings
in some cases the download goes well
but in some other cases i got this error message:
{"status":false,"errorCode":1001,"errorMessage":"Forbidden"}

Error
Every day we record at least 6 meetings at the same time.
Downloading the MP4 file went right for 3 of recordings that were ready that day

When trying to download some of the recordings we got error response:
{"status":false,"errorCode":1001,"errorMessage":"Forbidden"}

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

Which Endpoint/s?

example of download URL + access token
`https://crackthecode-la.zoom.us/rec/webhook_download/{REDACTED}access_token= {REDACTED }

@fcedillo,

Thank you for creating this new topic, @fcedillo! To start, can you share if there are any noticeable differences in how the calls are being made between the successful and unsuccessful requests? Have you tried to manually download a failed recording with your script? If so, can you share the results of that finding?

I am looking forward to hearing back from you.

Best,
Donte

Thank you @donte.zoom

  1. there is no noticeable difference between successful and unsuccessful requests

  2. manually downloading a recording (that failed with my script) was successful

@fcedillo,

Thank you for the reply! My apologies, I meant can you try to download that recording programmatically? If the problem does not persist, then the root cause may be the script’s logic being run. An example snippet of the script being used would help diagnose what may be happening.

Best,
Donte

this is a example snippet of the script

i run it in this way

from script import download_recording

download_url = 'https://crackthecode-la.zoom.us/rec/webhook_download/[REDACTED]'
download_token = '[REDACTED]'
filename = '[REDACTED] 2022-03-05.mp4'

download_recording(download_url, download_token, filename)

Response is an Error message

2022-03-07 23:36:46,742    INFO 420067            script.py  43 error: {"status":false,"errorCode":401,"errorMessage":"Forbidden"}

hi @donte.zoom

i included a example snippet of the script

hi! please help us with this issue

Hi, @fcedillo,
For your concern, please see this helpful developer forum post and the python script below for reference:

import requests
import os

zoom_access_token =  {recording completed access token}

download_url = {recording completed download url}


new_download_url = download_url +'?access_token=' + zoom_access_token

try:
    response = requests.get(new_download_url, stream=True)
    
except requests.exceptions.ConnectionError as err:
    print(err)
    response = requests.get(new_download_url, stream=True)
    
try:
    with open("downloadtest.mp4", 'wb') as fd:
        for chunk in response.iter_content(chunk_size=1024 * 8):
            if chunk:
                fd.write(chunk)
                fd.flush()
                os.fsync(fd.fileno())

except Exception as e:
    print(e)

I hope this helps.

Best,
Donte

1 Like

Click your profile picture, then click Settings. Click Register. Click one of these options next to Local Recording: Click Open to open the folder where local recordings are stored.

Thanks for your input @donovanc.sampson!

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