Can't download recorded files from cloud

Hello,

I’m trying to download with a python program a recorded file from a meeting but it doesn’t work.
I am authenticated with JWT

I chain 2 requests the first works perfectly and the second doesn’t.
1°)
url = ‘https://api.zoom.us/v2/meetings/494985960/recordings’.format(meetingId)
r = requests.get(url,headers=headers)
I obtain all the information of the meeting
2°)
url = ‘https://mydomain.zoom.us/rec/download/uMd4cOD8-DM3TIHA5QSDUf5wW429Kqqs1SId_KUFz0eyWiZWZ1WhbuMQaufrX01YVHsgOtLNbZfEZVCZ
r = requests.get(url,headers=headers)

Without the header I receive 200 response but the page is the login page.
With the header I receive a 401 error
{“status”:false,“errorCode”:401,“errorMessage”:“java.lang.NullPointerException”,“result”:null}

If I copy paste the url in the browser I can download the file.

What’s wrong ?

Thanks

Hey @EVant,

Can you private message me the download url?

Also, can you show me how you are setting the headers?

Thanks,
Tommy

Was this resolved? Hit this today. Header was the bearer token

Hey @tjain,

Instead of using a the bearer token method, can you try as a query param:

download_url?access_token={JWT TOKEN OR ACCESS TOKEN}

If that does not work, please provide steps to reproduce your issue. :slight_smile:

Thanks,
Tommy

1 Like

This worked! Thanks so much Tommy!

1 Like

You are welcome! :slight_smile:

Thanks,
Tommy