Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

JohnPT's avatar
JohnPT
Explorer | Level 3
3 years ago

Failed to establish a new connection: [WinError 10060] A connection attempt failed because the conne

Hi.  kind of stuck..  getting this error - worked two days ago. thanks for any ideas. 

 

Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'

 

same code works fine on test machine but fails on, production.   errors on the final print line.

 

with this code


import dropbox
filetoupload = 'Z:\\users\\aeadmin\\documents\\ysn1.png'

filetouploadname = '/ysn1d.png'

 

f= open(filetoupload,"rb")

 

dbx = dropbox.Dropbox(
app_key = "x65cwwc7.....",
app_secret = "3s809......",
oauth2_refresh_token = "IjYGZB7V...."
)

 

print(dbx.files_upload(f.read(),filetouploadname, mode=dropbox.files.WriteMode("overwrite")))

15 Replies

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!