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")))