cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API upload fails. Can not connect to api-content.dropbox.com for 32-th chunk

API upload fails. Can not connect to api-content.dropbox.com for 32-th chunk

Gelembjuk
Helpful | Level 5
Go to solution

I use the dropbox API to upload files.

It is latest API version.

 

Uploading is with chunks of 20MB .

Recently it stopped to work for big files. I notices it stops to work at chunk 32 .

All chunks before this are fine. 

And then on nex chunk my script can not connect to to dropbox server

TCP connect to api-content.dropbox.com on a port 443 can not be established. It doesn't fail. It just hungs at connecting (and my timeout 5 sec doesn't affect)

 

What can it be? Any ideas?

1 Accepted Solution

Accepted Solutions

Gelembjuk
Helpful | Level 5
Go to solution

I have found the workaround .

The reason for this problem is some bug in my system libs or in perl modules. 

It is totally not related to dropbox . 

 

My Perl code was

$socket = new IO::Socket::SSL(PeerAddr => $host,PeerPort => 443,Timeout=>5); 

But because some bug it hungs after 32 connects (each previous socket was closed)

The fix is to set the option to verify certificate

$socket=new IO::Socket::SSL(PeerAddr => $host,PeerPort => 443,Timeout=>5,SSL_verify_mode => SSL_VERIFY_NONE);

This solves the problem.

 

Again, it is not related to dropbox. It happens for any SSL connection to other servers too 

View solution in original post

3 Replies 3

Greg-DB
Dropbox Staff
Go to solution
The Dropbox API content servers are currently be served properly, and I'm currently able to upload more than 32 20MB-chunks, so it might be an issue with your network connection (or ISP). For example, is there something, such as security software like an anti-virus or firewall, or a malfunctioning proxy, that may be interfering with the connection?

Gelembjuk
Helpful | Level 5
Go to solution

I have found the workaround .

The reason for this problem is some bug in my system libs or in perl modules. 

It is totally not related to dropbox . 

 

My Perl code was

$socket = new IO::Socket::SSL(PeerAddr => $host,PeerPort => 443,Timeout=>5); 

But because some bug it hungs after 32 connects (each previous socket was closed)

The fix is to set the option to verify certificate

$socket=new IO::Socket::SSL(PeerAddr => $host,PeerPort => 443,Timeout=>5,SSL_verify_mode => SSL_VERIFY_NONE);

This solves the problem.

 

Again, it is not related to dropbox. It happens for any SSL connection to other servers too 

Greg-DB
Dropbox Staff
Go to solution
I'm glad to hear you got this working, but note that disabling SSL certificate verification is not recommended, as that may introduce certain kinds of security vulnerabilities.
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Gelembjuk Helpful | Level 5
What do Dropbox user levels mean?