java.io.IOException

unexpected end of stream on okhttp3.Address@19866665

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


rafaelrafael

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

Solutions on the web34

  • via GitHub by TheDrHax
    ,
  • via GitHub by aravindsrivats
    ,
  • Stack trace

    • java.io.IOException: unexpected end of stream on okhttp3.Address@19866665 at okhttp3.internal.http.Http1xStream.readResponse(Http1xStream.java:199) at okhttp3.internal.http.Http1xStream.readResponseHeaders(Http1xStream.java:125) at okhttp3.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:723) at okhttp3.internal.http.HttpEngine.access$200(HttpEngine.java:81) at okhttp3.internal.http.HttpEngine$NetworkInterceptorChain.proceed(HttpEngine.java:708) at pw.thedrhax.mosmetro.httpclient.clients.OkHttp$100000002.intercept(OkHttp.java:52) at okhttp3.internal.http.HttpEngine$NetworkInterceptorChain.proceed(HttpEngine.java:681) at okhttp3.internal.http.HttpEngine.readResponse(HttpEngine.java:563) at okhttp3.RealCall.getResponse(RealCall.java:241) at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:198) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:160) at okhttp3.RealCall.execute(RealCall.java:57) at pw.thedrhax.mosmetro.httpclient.clients.OkHttp.get(OkHttp.java:77) at pw.thedrhax.mosmetro.authenticator.networks.MosGorTrans.connect_enforta(MosGorTrans.java:218) at pw.thedrhax.mosmetro.authenticator.networks.MosGorTrans.connect(MosGorTrans.java:386) at pw.thedrhax.mosmetro.authenticator.Authenticator.start(Authenticator.java:63) at pw.thedrhax.mosmetro.activities.DebugActivity$AuthTask.doInBackground(DebugActivity.java:152) at pw.thedrhax.mosmetro.activities.DebugActivity$AuthTask.doInBackground(DebugActivity.java) at android.os.AsyncTask$2.call(AsyncTask.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) 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) Caused by: java.io.EOFException: \n not found: size=0 content=... at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:201) at okhttp3.internal.http.Http1xStream.readResponse(Http1xStream.java:184) ... 23 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

    archenrootarchenroot
    Once,
    danleyb2Interinteldanleyb2Interintel
    3 times, last one
    bayukresnobayukresno
    4 times, last one
    thilothilo
    33 times, last one
    MacaponMacapon
    24 times, last one
    6 more bugmates