Sorry, something went wrong. That's way too long. The default is 10 seconds, but sometimes a bit larger is needed. A timeout is something that is a good because it indicates a network that acts like it's connected but in actually isn't working.
The stacktrace clearly indicates that a timeout is a the problem, so I don't really know what to tell you. Somewhat related, you should really try to use Okio for writing to a file which will save you a lot of lines of code:. Unfortunately the java. InterruptedIOException: thread interrupted happend again lastnight. All I want to do is download file and show progress. The snippet of okio to write file:. So i think the way i write file to disk is right. The place where the error can occur is subscribe.
I just do not known why. I am facing the same issue while using OkHttp to download around 40 Mb file using background service. JakeWharton can you please help to figure out this. Quicknav Quicknav. Results Loading Subset Character. Added in API level 1. InterruptedException Class Overview Thrown when a waiting thread is activated before the condition it was waiting for has been satisfied. Throwable fillInStackTrace Records the stack trace from the point where this method has been called to this Throwable.
Returns the cause of this Throwable , or null if there is no cause. Returns the extra information message which was provided when this Throwable was created. Writes a printable representation of this Throwable 's stack trace to the specified print writer. Writes a printable representation of this Throwable 's stack trace to the specified print stream.
Shoaib Shoaib 2 2 silver badges 11 11 bronze badges. Check out this answer: stackoverflow. Add a comment. Active Oldest Votes. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast what if you could invest in your favorite developer? Who owns this outage? Building intelligent escalation chains for modern SRE.
0コメント