Forum Discussion

Wesley L.3's avatar
Wesley L.3
New member | Level 1
11 years ago

Keep getting 'the request timed out' when try to download files

I am trying to download a whole folder (all sub folders and files under this folder should be downloaded) on iOS, but I keep getting 'the request timed out' error, like this:

Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={NSUnderlyingError=0x14f988de0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, NSErrorFailingURLStringKey=https://content.dropboxapi.com/1/files/auto/Camera%20Uploads/2015-10-21%2018.02.10.jpg, NSErrorFailingURLKey=https://content.dropboxapi.com/1/files/auto/Camera%20Uploads/2015-10-21%2018.02.10.jpg, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-2102, NSLocalizedDescription=The request timed out.}


Is it because that there are a lot of HTTP GET requests happened in a small time interval so that the dropbox server banned the request? How can I do to prevent it? What is the time interval that can bypass the dropbox server so that I can download a whole folder altogether?

1 Reply

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    11 years ago

    This isn't a result of the Dropbox servers themselves banning the request, but this can be caused by attempting too many requests simultaneously, causing them to take too long and then timeout. You should make sure to only attempt a limited number of requests at a time. I've heard developers choosing a limit of 4, but the best number for you may depend on the specifics of your app, use case, etc.

About Dropbox API Support & Feedback

Node avatar for 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!