Forum Discussion

niktrychill's avatar
niktrychill
New member | Level 2
7 years ago

requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed c

 

i am uploading csv data to cloud here is the code.

with open(filename, 'rb') as f:
        data = f.read()
    try:
        dbx.files_upload(data, '/' + filename, dropbox.files.WriteMode.overwrite)
        return 1
    except:
        traceback.print_exc()
        return 0

i got this error.

requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))

i am using python 3.5 and dropbox 9.0.0 in local linux os.

 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    Nothing looks clearly wrong in your code. I also just tried this and can't reproduce the issue.

    Are you still seeing this? If so, is there anything on your network connection, e.g., firewall, proxy, etc. that may be interfering?

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,949 PostsLatest Activity: 22 hours ago
352 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!