<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: InterruptedIOException and NetworkIOException in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/InterruptedIOException-and-NetworkIOException/m-p/405935#M1081</link>
    <description>&lt;P&gt;Based on the stack here, it looks like this is an issue reading data from the network. Do you know if there is any reason the network connection that the app is using may be getting disrupted? E.g., was the connection disconnected or interrupted, or might there be any software, such as a proxy, firewall, anti-virus, etc., that may be interfering?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is random network unreliability, you may want to implement some more error handling/retrying, as that can be unpredictable.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Apr 2020 18:53:29 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-04-01T18:53:29Z</dc:date>
    <item>
      <title>InterruptedIOException and NetworkIOException</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/InterruptedIOException-and-NetworkIOException/m-p/405903#M1080</link>
      <description>&lt;P&gt;My app crashes randomly and I do not know what cause the error.&amp;nbsp;&amp;nbsp; I'm using RxJava2 to get the file list.&lt;/P&gt;&lt;P&gt;Here is the crash log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Caused by: com.dropbox.core.NetworkIOException
        at com.dropbox.core.DbxRequestUtil.startPostRaw(DbxRequestUtil.java:284)
        at com.dropbox.core.v2.DbxRawClientV2$1.execute(DbxRawClientV2.java:146)
        at com.dropbox.core.v2.DbxRawClientV2.executeRetriable(DbxRawClientV2.java:330)
        at com.dropbox.core.v2.DbxRawClientV2.executeRetriableWithRefresh(DbxRawClientV2.java:351)
        at com.dropbox.core.v2.DbxRawClientV2.rpcStyle(DbxRawClientV2.java:137)
        at com.dropbox.core.v2.files.DbxUserFilesRequests.listFolder(DbxUserFilesRequests.java:2082)
        at com.dropbox.core.v2.files.DbxUserFilesRequests.listFolder(DbxUserFilesRequests.java:2132)
        at com.quirklogic.sdk.storage.dropbox.DropBoxFolder.lambda$list$0$DropBoxFolder(DropBoxFolder.java:109)
        at com.quirklogic.sdk.storage.dropbox.DropBoxFolder$$Lambda$0.call(Unknown Source)
        at io.reactivex.internal.operators.single.SingleFromCallable.subscribeActual(SingleFromCallable.java:44)
        at io.reactivex.Single.subscribe(Single.java:3220)&amp;nbsp;
        at io.reactivex.internal.operators.single.SingleMap.subscribeActual(SingleMap.java:34)&amp;nbsp;
        at io.reactivex.Single.subscribe(Single.java:3220)&amp;nbsp;
        at io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run(SingleSubscribeOn.java:89)&amp;nbsp;
        at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:571)&amp;nbsp;
        at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)&amp;nbsp;
        at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)&amp;nbsp;
        at java.util.concurrent.FutureTask.run(FutureTask.java:237)&amp;nbsp;
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)&amp;nbsp;
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)&amp;nbsp;
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)&amp;nbsp;
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)&amp;nbsp;
        at java.lang.Thread.run(Thread.java:818)&amp;nbsp;
     Caused by: java.io.InterruptedIOException
        at com.android.okio.Deadline.throwIfReached(Deadline.java:56)
        at com.android.okio.Okio$1.write(Okio.java:67)
        at com.android.okio.RealBufferedSink.flush(RealBufferedSink.java:154)
        at com.android.okhttp.internal.http.HttpConnection.flush(HttpConnection.java:130)
        at com.android.okhttp.internal.http.HttpTransport.flushRequest(HttpTransport.java:73)
        at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:626)
        at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:388)
        at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:332)
        at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:500)
        at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)
        at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:25)
        at com.dropbox.core.http.StandardHttpRequestor.toResponse(StandardHttpRequestor.java:50)
        at com.dropbox.core.http.StandardHttpRequestor.access$100(StandardHttpRequestor.java:29)
        at com.dropbox.core.http.StandardHttpRequestor$Uploader.finish(StandardHttpRequestor.java:186)
        at com.dropbox.core.DbxRequestUtil.startPostRaw(DbxRequestUtil.java:279)
        at com.dropbox.core.v2.DbxRawClientV2$1.execute(DbxRawClientV2.java:146)&amp;nbsp;
        at com.dropbox.core.v2.DbxRawClientV2.executeRetriable(DbxRawClientV2.java:330)&amp;nbsp;
        at com.dropbox.core.v2.DbxRawClientV2.executeRetriableWithRefresh(DbxRawClientV2.java:351)&amp;nbsp;
        at com.dropbox.core.v2.DbxRawClientV2.rpcStyle(DbxRawClientV2.java:137)&amp;nbsp;
        at com.dropbox.core.v2.files.DbxUserFilesRequests.listFolder(DbxUserFilesRequests.java:2082)&amp;nbsp;
        at com.dropbox.core.v2.files.DbxUserFilesRequests.listFolder(DbxUserFilesRequests.java:2132)&amp;nbsp;
        at com.quirklogic.sdk.storage.dropbox.DropBoxFolder.lambda$list$0$DropBoxFolder(DropBoxFolder.java:109)&amp;nbsp;
        at com.quirklogic.sdk.storage.dropbox.DropBoxFolder$$Lambda$0.call(Unknown Source)&amp;nbsp;
        at io.reactivex.internal.operators.single.SingleFromCallable.subscribeActual(SingleFromCallable.java:44)&amp;nbsp;
        at io.reactivex.Single.subscribe(Single.java:3220)&amp;nbsp;
        at io.reactivex.internal.operators.single.SingleMap.subscribeActual(SingleMap.java:34)&amp;nbsp;
        at io.reactivex.Single.subscribe(Single.java:3220)&amp;nbsp;
        at io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run(SingleSubscribeOn.java:89)&amp;nbsp;
        at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:571)&amp;nbsp;
        at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)&amp;nbsp;
        at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)&amp;nbsp;
        at java.util.concurrent.FutureTask.run(FutureTask.java:237)&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Apr 2020 17:14:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/InterruptedIOException-and-NetworkIOException/m-p/405903#M1080</guid>
      <dc:creator>DannyW1</dc:creator>
      <dc:date>2020-04-01T17:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: InterruptedIOException and NetworkIOException</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/InterruptedIOException-and-NetworkIOException/m-p/405935#M1081</link>
      <description>&lt;P&gt;Based on the stack here, it looks like this is an issue reading data from the network. Do you know if there is any reason the network connection that the app is using may be getting disrupted? E.g., was the connection disconnected or interrupted, or might there be any software, such as a proxy, firewall, anti-virus, etc., that may be interfering?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is random network unreliability, you may want to implement some more error handling/retrying, as that can be unpredictable.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 18:53:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/InterruptedIOException-and-NetworkIOException/m-p/405935#M1081</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-01T18:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: InterruptedIOException and NetworkIOException</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/InterruptedIOException-and-NetworkIOException/m-p/405938#M1082</link>
      <description>&lt;P&gt;Thanks Greg.&amp;nbsp; Internet connection is fine.&amp;nbsp; The error does not happen everytime.&amp;nbsp; It is just random.&amp;nbsp; It usually happens when I do alot of file list and get a file and repeat that process.&lt;/P&gt;&lt;P&gt;This happens on different devices too and on different wifi network.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to trap the crash?&lt;/P&gt;&lt;P&gt;This is what i'm doing in RxJava2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;            return Single.fromCallable(() -&amp;gt; DropBoxAuth.getInstance().getDbxClient().files().listFolder(query))
                    .map(result -&amp;gt; { ... }

&lt;/PRE&gt;&lt;P&gt;The crash is inside fromCallable().&amp;nbsp; Could it be RxJava?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 19:11:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/InterruptedIOException-and-NetworkIOException/m-p/405938#M1082</guid>
      <dc:creator>DannyW1</dc:creator>
      <dc:date>2020-04-01T19:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: InterruptedIOException and NetworkIOException</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/InterruptedIOException-and-NetworkIOException/m-p/405973#M1083</link>
      <description>&lt;P&gt;Can 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&amp;nbsp;which case you should try reducing how many operations you run at a time, as that might be causing this.&lt;/P&gt;
&lt;P&gt;Anyway, yes, the&amp;nbsp;Dropbox SDK throws a 'NetworkIOException' when this occurs, so you can `catch` that exception type to handle these failures.&lt;/P&gt;
&lt;P&gt;I can't provide insight or support for&amp;nbsp;RxJava2 though, as that's made by a third party.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 21:04:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/InterruptedIOException-and-NetworkIOException/m-p/405973#M1083</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-01T21:04:16Z</dc:date>
    </item>
  </channel>
</rss>

