java.io.IOException: unexpected end of stream on okhttp3.Address@34845fb

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Either your request in not properly written (check this answer: https://goo.gl/7q57Bl) or you're running into a OkHTTP bug, in which case you should update OkHTTP to 2.4 (or further) and check this discussion: https://goo.gl/Sx7cf4 and issues #1517 & #1518

Solutions on the web

via GitHub by lkhore
, 1 year ago
unexpected end of stream on okhttp3.Address@34845fb
via GitHub by shubham-m
, 1 year ago
unexpected end of stream on okhttp3.Address@5106fe42
via Stack Overflow by raphPradhan
, 11 months ago
unexpected end of stream on okhttp3.Address@d8a95c17
java.io.IOException: unexpected end of stream on okhttp3.Address@34845fb
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:215)
at okhttp3.internal.http.Http1xStream.readResponse(Http1xStream.java:184)
at okhttp3.internal.http.Http1xStream.readResponseHeaders(Http1xStream.java:125)
at okhttp3.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:775)
at okhttp3.internal.http.HttpEngine.access$200(HttpEngine.java:86)
at okhttp3.internal.http.HttpEngine$NetworkInterceptorChain.proceed(HttpEngine.java:760)
at okhttp3.internal.http.HttpEngine.readResponse(HttpEngine.java:613)
at okhttp3.RealCall.getResponse(RealCall.java:244)
at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:201)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
at okhttp3.RealCall.access$100(RealCall.java:30)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:127)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

3 times, 1 year ago
4 times, 1 year ago
Once, 10 months ago
4 times, 2 months ago
4 times, 4 months ago
8 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.