Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
gagsbh
5 years agoHelpful | Level 5
Dropbox API Upload Errors using .NET SDK
Hello Greg-DB,
We already have a Dropbox solution on production system that fetches and restore files.
Our solution uses Dropbox API SDK for .NET - https://github.com/dropbox/dropbox-sdk-dotn...
- 5 years ago
All Dropbox API calls use HTTPS, so they go to port 443 on the relevant Dropbox API servers, which, for uploading and downloading file content via the official .NET SDK, is content.dropboxapi.com.
As for the error you're getting, can you let me know what version number of the SDK you have installed, and share the relevant code snippet that's running when you see this? Thanks in advance!
gagsbh
5 years agoHelpful | Level 5
Hello Greg-DB
This is the full output and it is the same issue.
Exception in old Dropbox API version was not handled properly and control went till GetRequestID where object was null because response headers were missing. The exception message and stack trace changed after the Dropbox API was upgraded to 6.6.2.
As per your suggestion, I have asked my technical admin to check the environment.
I will let you know if we figure out any local issue.
Thanks,
Gagan
gagsbh
5 years agoHelpful | Level 5
Hello Greg-DB
The uploads worked on one of our servers but failed on 3 other servers.
The upload also worked on my local development machine.
I monitored the failed requests on the 3 servers using Fiddler and got the following in the response:
"HTTPS handshake to content.dropboxapi.com (for #18) failed. System.IO.IOException Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. < An existing connection was forcibly closed by the remote host"
I did a trace route on one of the servers where upload failed using the following command:
C:\Windows\system32>tracert content.dropboxapi.com
Tracing route to edge-block-api-env.dropbox-dns.com [162.125.11.14]
over a maximum of 30 hops:
1 11 ms 11 ms 12 ms 10.7.151.253
2 12 ms 12 ms 19 ms 107.6.3.58
3 39 ms 100 ms 13 ms et-1-1-5.tor-fr709-cor-1.peer1.net [216.187.113.177]
4 4 ms 5 ms 4 ms dropbox.ip4.torontointernetxchange.net [206.108.35.99]
5 21 ms 17 ms 20 ms po1-yyz1-ea01.net.dropbox.com [162.125.10.33]
6 12 ms 13 ms 11 ms 162.125.11.14
Trace complete.
We are checking if our hosting provider is blocking content.dropboxapi.com
Can it be possible if Dropbox is blocking requests originating from our 3 servers where uploads are failing.
If yes, how do we confirm this.
Thanks,
Gagan
- Greg-DB5 years ago
Dropbox Community Moderator
The Dropbox API doesn't ban IP addresses or deny specific hosts like this. If it decides to reject a request, it would send back an error response with a specific error code, such as 429.
Given that it works on some of your machines/servers, it does sound like there's something blocking the connection on some of them. Let me know if you can't find a cause with your hosting provider though.
About 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!