Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
listfolder/longpoll endpoint on Java API gets SocketTimeOut.
This is understandable, since in:
com.dropbox.core.http.HttpRequestor
You have set the connection read timeout to 20 seconds while at server side you have declared 30 secs in docs.
A dirty workaround is to subclass StandardHTTPRequestor but ideally would like to have this "just" work. Also, having different connection timeouts based on request type would not hurt...
I wonder how what kind of tests have been made on Java SDK? Anyway, if this longpoll stuff is not properly tested, what is your policy for standard polling? I already implemented and tested that for my app so would like to use that instead if longpoll is going to be fragile.
Thanks for the report! We'll work on getting that fixed up.
As far as normal polling is concerned, we don't have any specific guidance, but there is a rate limiting system that will error out requests if you call too quickly.
This should be fixed as of version 2.0-beta-6 of the SDK, where we exposed the ability to configure socket read timeouts for StandardHttpRequestor.
You can find a sample of using longpoll here:
Hi there!
If you need more help you can view your support options (expected response time for a 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!