Trouble downloading files in Dropbox Python API v2

457 views Asked by At

I'm trying to download .mov files from Dropbox, manipulate them with ffmpeg, and upload back to Dropbox, but I'm getting an error when I use the files_download method.

I'm able to read files from Dropbox without any problem using dbx.files_list_folder

When trying to download files, I've used the following:

import dropbox
access_token = 'MY TOKEN'
dbx = dropbox.Dropbox(access_token)
metadata,file=dbx.files_download('path to .mov file')

and I get the error

SSLError: HTTPSConnectionPool(host='content.dropboxapi.com', port=443): Max retries exceeded with url: /2/files/download (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))

I don't know if this is a cause, but I didn't use the Dropbox app key or app secret in setting things up. In going through the API v2 setup, it looked like all you need is the API Access token, but I'm wondering if there's a permissions error.

I'll only be using this app for myself--it's not meant for production.

0

There are 0 answers