cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 

listfolder/longpoll - timeouts on Dropbox Java SDK (v2)

Antti R. New member | Level 1
New member | Level 1

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.

 

 

 

 

2 Replies 2

Re: listfolder/longpoll - timeouts on Dropbox Java SDK (v2)

Dropboxer
Dropboxer

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.

Re: listfolder/longpoll - timeouts on Dropbox Java SDK (v2)

Dropboxer
Dropboxer

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:

https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/longpoll/src/com/dropbox/core/examp...

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?