Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
DannyW1
6 years agoExplorer | Level 3
InterruptedIOException and NetworkIOException
My app crashes randomly and I do not know what cause the error. I'm using RxJava2 to get the file list. Here is the crash log Caused by: com.dropbox.core.NetworkIOException
at com.drop...
DannyW1
6 years agoExplorer | Level 3
Thanks Greg. Internet connection is fine. The error does not happen everytime. It is just random. It usually happens when I do alot of file list and get a file and repeat that process.
This happens on different devices too and on different wifi network.
Is there a way to trap the crash?
This is what i'm doing in RxJava2
return Single.fromCallable(() -> DropBoxAuth.getInstance().getDbxClient().files().listFolder(query))
.map(result -> { ... }
The crash is inside fromCallable(). Could it be RxJava?
Greg-DB
Dropbox Community Moderator
6 years agoCan you elaborate on what you mean when you say you "do alot of file list"? How many API calls are you making at a time? If you're making a large number of calls, you may be overloading your system or network connection, in which case you should try reducing how many operations you run at a time, as that might be causing this.
Anyway, yes, the Dropbox SDK throws a 'NetworkIOException' when this occurs, so you can `catch` that exception type to handle these failures.
I can't provide insight or support for RxJava2 though, as that's made by a third party.
About Discuss Dropbox Developer & API
Make connections with 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!