One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Gelembjuk
8 years agoHelpful | Level 5
API upload fails. Can not connect to api-content.dropbox.com for 32-th chunk
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?
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
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? - GelembjukHelpful | Level 5
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
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.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,951 PostsLatest Activity: 2 hours ago
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 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!