We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Dan A.17
9 years agoNew member | Level 2
DBFILESUserAuthRoutes listFolderLongpoll:timeout: is timing out
One of our users is getting "Request timed out" when our app calls [DBFILESUserAuthRoutes listFolderLongpoll:timeout: ] with the timeout parameter having the default value of 30. The documentation for this call in the Objective C SDK says "Care should be taken when using this parameter, as some network infrastructure does not support long timeouts." What does this mean, what care should be taken? Also, what is the range of valid values for the timeout parameter?
1 Reply
- Greg-DB9 years ago
Dropbox Community Moderator
I believe that's referring to things like proxies, firewalls, etc., which may interfere with connections like this. If your users are likely to be in more restrictive environments like this, you may want to not use that in your app, or user different parameters, etc.
For reference, the API itself supports a longpoll timeout of 30-480 seconds:
https://github.com/dropbox/dropbox-api-spec/blob/d407fe71a0246158c89c94e307d4f2effd55a273/files.stone#L294
There is an iOS-specific limitation to be aware of though, that can limit this further. You can find more information here:
https://github.com/dropbox/dropbox-sdk-obj-c#longpoll-session-timeout-bug
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!