I am trying to upload a zip file using the files_upload method. When I use a regular zip file (not password protected) it works. However, when I use a password-protected zip file the process takes a long time and eventually output the following error:
Traceback (most recent call last):
File "/Users/shifloni/Desktop/walk.py", line 17, in <module>
dp.files_upload(enc, '/encrypted/test.zip')
File "/Users/shifloni/dev/law_venv/lib/python2.7/site-packages/dropbox/base.py", line 377, in files_upload
f)
File "/Users/shifloni/dev/law_venv/lib/python2.7/site-packages/dropbox/dropbox.py", line 175, in request
request_binary)
File "/Users/shifloni/dev/law_venv/lib/python2.7/site-packages/dropbox/dropbox.py", line 256, in request_json_string_with_retry
request_binary)
File "/Users/shifloni/dev/law_venv/lib/python2.7/site-packages/dropbox/dropbox.py", line 316, in request_json_string
verify=True,
File "/Users/shifloni/dev/law_venv/lib/python2.7/site-packages/requests/sessions.py", line 504, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/Users/shifloni/dev/law_venv/lib/python2.7/site-packages/requests/sessions.py", line 461, in request
resp = self.send(prep, **send_kwargs)
File "/Users/shifloni/dev/law_venv/lib/python2.7/site-packages/requests/sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "/Users/shifloni/dev/law_venv/lib/python2.7/site-packages/requests/adapters.py", line 415, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine("''",))
Has anyone encountered that type of error when uploading password protected zip files using the API?
Thanks