You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
JohnPT
2 years agoExplorer | Level 3
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 p...
Здравко
2 years agoLegendary | Level 20
JohnPT, some more info might be helpful. Your Python SDK single method call involves 2 API calls (on 2 different Dropbox servers)! It's not clear least which one fails. Some stacktrace would be fine. Does the same happen if you perform client object initialization with access token, instead of refresh token? Check that, if possible, on the machine where execution fails.
- JohnPT2 years agoExplorer | Level 3
It fails on the final line the upload request. > print(dbx.files_upload(f.read(),filetouploadname, mode=dropbox.files.WriteMode("overwrite")))
I get a dbx object that looks fine in vscode.
I will try this. working to get trace and try on another machine. i am testing on windows 10 machine for test and prod.
Thank you for your help.
- Здравко2 years agoLegendary | Level 20
JohnPT wrote:...
It fails on the final line the upload request. > print(dbx.files_upload(f.read(),filetouploadname, mode=dropbox.files.WriteMode("overwrite")))
I get a dbx object that looks fine in vscode.
...
Just to add some clarification. Yes, for sure the code, you posted, is the only place where things can get wrong. It's the only place, in your code, where API calls get performed. The 'dbx' object itself can look fine after construction. Construction doesn't perform too much checks! You can construct Dropbox client object with completely wrong parameters and it will looks "fine". It wont look the same when you're going to execute some of its method though (where the actual mistakes get up). 😉
- JohnPT2 years agoExplorer | Level 3
ok cool. thank you for the details.
- JohnPT2 years agoExplorer | Level 3
Thanks for the access token idea.
I created a new app and used a new access code. that worked fine on both the local test and cloud test machine.
Not enough knowledge to know what that means?
Does that mean my orginal app is problematic?
Nothing has changed here and it does work on my test machine?
any thoughts?
Thank you for your kind help. still a bit of a newbie to DB. 😆
- Здравко2 years agoLegendary | Level 20
JohnPT wrote:...
I created a new app and used a new access code. that worked fine on both the local test and cloud test machine.
Not enough knowledge to know what that means?
...
That means your upload API call works, but your refresh API call seems problematic for some reason. When you're using access token refresh doesn't happen, so it lets limit the possible issues. The debug is going to go on here. Are you certain the same Dropbox SDK installed on all your machines? Next step can be to perform refresh by hand, on the machine where code fails - to see what's going on more close.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 7 hours agoIf 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!