java.io.IOException

unexpected end of stream on okhttp3.Address@b9c05ad8

Samebug tips1

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web7622

  • via GitHub by gengjiawen
    , 10 months ago
    unexpected end of stream on okhttp3.Address@b9c05ad8
  • unexpected end of stream on okhttp3.Address@d8a95c17
  • unexpected end of stream on okhttp3.Address@59b3133f
  • Stack trace

    • java.io.IOException: unexpected end of stream on okhttp3.Address@b9c05ad8 at okhttp3.internal.http.Http1xStream.readResponse(Http1xStream.java:201) at okhttp3.internal.http.Http1xStream.readResponseHeaders(Http1xStream.java:127) at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:53) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:109) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:124) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:170) at okhttp3.RealCall.access$100(RealCall.java:33) at okhttp3.RealCall$AsyncCall.execute(RealCall.java:120) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.EOFException: \n not found: size=0 content=… at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:215) at okhttp3.internal.http.Http1xStream.readResponse(Http1xStream.java:186) ... 21 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    4 times, 4 weeks ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 3 months ago
    Once, 6 months ago
    Once, 8 months ago
    6 more bugmates