cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Known issues updated. Learn more
Highlighted

[Solved]Failed to download API since SSL handshake failed

Level 4

Hi
In my application, Dropbox download API as below is failed, this API could work correctly till last week

Download API:
https://content.dropboxapi.com/2/files/download

I made sure this cURL command also. Below is failure log, how can I resolve this problem?

Command
C:\Users\aaa\Dropbox\folder1>curl -s -v --tlsv1.2 -X POST https://content.dropboxapi.com/2/files/download --header "Authorization: Bearer <access token>" --header "Dropbox-API-Arg: {\"path\": \"/test/foo.tif\"}" -o foo.tif
* Trying 162.125.4.8...
* TCP_NODELAY set
* Connected to content.dropboxapi.com (162.125.4.smiling face with sunglasses port 443 (#0)
* schannel: SSL/TLS connection with content.dropboxapi.com port 443 (step 1/3)
* schannel: checking server certificate revocation
* schannel: sending initial handshake data: sending 187 bytes...
* schannel: sent initial handshake data: sent 187 bytes
* schannel: SSL/TLS connection with content.dropboxapi.com port 443 (step 2/3)
* schannel: failed to receive handshake, SSL/TLS connection failed
* Closing connection 0
* schannel: shutting down SSL/TLS connection with content.dropboxapi.com port 443
* Send failure: Connection was reset
* schannel: failed to send close msg: Failed sending data to the peer (bytes written: -1)
* schannel: clear security context handle

Other API such as /list_folder and files/delete_v2 can work correctly withou TLS error

1 Accepted solution

Accepted Solutions

Re: Failed to download API since SSL handshake failed

Dropboxer

Thanks for the report! I just tried the code in your post though, and it worked fine for me. Is there anything on your network connection, e.g., proxy, firewall, etc., that may be interfering with your connection to content.dropboxapi.com in particular? (For comparison, /2/files/list_folder and /2/files/delete_v2 operate on api.dropboxapi.com.)

If you're still seeing this and there isn't anything on your network connection that's blocking the connection, please let me know the following so we can look into it:

  • the version number of curl you have installed
  • the output of the following command from an affected machine

Mac/Linux:

traceroute content.dropboxapi.com

Windows:

tracert content.dropboxapi.com

 

 

Reply
Loading...
2 Replies

Re: Failed to download API since SSL handshake failed

Dropboxer

Thanks for the report! I just tried the code in your post though, and it worked fine for me. Is there anything on your network connection, e.g., proxy, firewall, etc., that may be interfering with your connection to content.dropboxapi.com in particular? (For comparison, /2/files/list_folder and /2/files/delete_v2 operate on api.dropboxapi.com.)

If you're still seeing this and there isn't anything on your network connection that's blocking the connection, please let me know the following so we can look into it:

  • the version number of curl you have installed
  • the output of the following command from an affected machine

Mac/Linux:

traceroute content.dropboxapi.com

Windows:

tracert content.dropboxapi.com

 

 

Reply
Loading...

Re: Failed to download API since SSL handshake failed

Level 4

Hi, Greg

Thank you for your comment and helping.

I made sure my company block list and this shows "content.dropboxapi.com" and after opening this, I can download.

Best Ragards.

tai

Reply
Loading...
API Support

Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.

Not the right discussion for you? Find out what else our Community has to say about API Support.

Or, search our Help Center for even more.

Who's talking
Top contributors to this post