IOException: ID1ID2: actual 0x00000a3c != expected 0x00001f8b
See original GitHub issue-06 00:08:29.085 5471-17106/com.takeal.stm D/OkHttp: --> POST http://www.takeal.com/api/mobile/register http/1.1
04-06 00:08:29.085 5471-17106/com.takeal.stm D/OkHttp: Content-Type: application/x-www-form-urlencoded
04-06 00:08:29.099 5471-17106/com.takeal.stm D/OkHttp: Content-Length: 196
04-06 00:08:29.104 5471-17106/com.takeal.stm D/OkHttp: first_name=Mr.boyfox&last_name=go
04-06 00:08:29.109 5471-17106/com.takeal.stm D/OkHttp: --> END POST (196-byte body)
04-06 00:08:34.880 5471-17106/com.takeal.stm D/OkHttp: <-- 200 OK http://www.takeal.com/api/mobile/register (5771ms)
04-06 00:08:34.880 5471-17106/com.takeal.stm D/OkHttp: Server: nginx
04-06 00:08:34.880 5471-17106/com.takeal.stm D/OkHttp: Date: Wed, 05 Apr 2017 19:08:33 GMT
04-06 00:08:34.881 5471-17106/com.takeal.stm D/OkHttp: Content-Type: application/json; charset=utf-8
04-06 00:08:34.881 5471-17106/com.takeal.stm D/OkHttp: Transfer-Encoding: chunked
04-06 00:08:34.881 5471-17106/com.takeal.stm D/OkHttp: Connection: keep-alive
04-06 00:08:34.881 5471-17106/com.takeal.stm D/OkHttp: Set-Cookie: ci_sessions=91prv7u7k7m8fblif6n94trkc9; expires=Wed, 05-Apr-2017 21:08:28 GMT; Max-Age=7200; path=/; HttpOnly
04-06 00:08:34.881 5471-17106/com.takeal.stm D/OkHttp: Expires: Thu, 19 Nov 1981 08:52:00 GMT
04-06 00:08:34.881 5471-17106/com.takeal.stm D/OkHttp: Cache-Control: no-store, no-cache, must-revalidate
04-06 00:08:34.881 5471-17106/com.takeal.stm D/OkHttp: Pragma: no-cache
04-06 00:08:34.882 5471-17106/com.takeal.stm D/OkHttp: Vary: Accept-Encoding
04-06 00:08:34.882 5471-17106/com.takeal.stm D/OkHttp: X-Frame-Options: SAMEORIGIN
04-06 00:08:34.882 5471-17106/com.takeal.stm D/OkHttp: X-Content-Type-Options: nosniff
04-06 00:08:34.882 5471-17106/com.takeal.stm D/OkHttp: X-Xss-Protection: 1; mode=block
04-06 00:08:34.883 5471-17106/com.takeal.stm W/System.err: java.io.IOException: ID1ID2: actual 0x00000a3c != expected 0x00001f8b
04-06 00:08:34.884 5471-17106/com.takeal.stm W/System.err: at okio.GzipSource.checkEqual(GzipSource.java:205)
04-06 00:08:34.884 5471-17106/com.takeal.stm W/System.err: at okio.GzipSource.consumeHeader(GzipSource.java:120)
04-06 00:08:34.884 5471-17106/com.takeal.stm W/System.err: at okio.GzipSource.read(GzipSource.java:73)
04-06 00:08:34.884 5471-17106/com.takeal.stm W/System.err: at okio.RealBufferedSource.request(RealBufferedSource.java:66)
04-06 00:08:34.884 5471-17106/com.takeal.stm W/System.err: at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:238)
04-06 00:08:34.884 5471-17106/com.takeal.stm W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
04-06 00:08:34.884 5471-17106/com.takeal.stm W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
04-06 00:08:34.884 5471-17106/com.takeal.stm W/System.err: at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:179)
04-06 00:08:34.884 5471-17106/com.takeal.stm W/System.err: at okhttp3.RealCall.execute(RealCall.java:63)
04-06 00:08:34.884 5471-17106/com.takeal.stm W/System.err: at retrofit2.OkHttpCall.execute(OkHttpCall.java:174)
04-06 00:08:34.884 5471-17106/com.takeal.stm W/System.err: at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall.execute(ExecutorCallAdapterFactory.java:89)
04-06 00:08:34.884 5471-17106/com.takeal.stm W/System.err: at com.takeal.stm.fragments.authregpages.RegisterPage$10.run(RegisterPage.java:556)
04-06 00:08:34.884 5471-17106/com.takeal.stm W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
04-06 00:08:34.884 5471-17106/com.takeal.stm W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
04-06 00:08:34.884 5471-17106/com.takeal.stm W/System.err: at java.lang.Thread.run(Thread.java:818)
04-06 00:22:56.637 5471-31392/com.takeal.stm D/OkHttp: --> GET http://www.takeal.com/api/mobile/check/username/b http/1.1
04-06 00:22:56.637 5471-31392/com.takeal.stm D/OkHttp: --> END GET
04-06 00:22:56.839 5471-31392/com.takeal.stm W/System.err: java.net.SocketException: Socket closed
04-06 00:22:56.839 5471-31392/com.takeal.stm W/System.err: at libcore.io.IoBridge.isConnected(IoBridge.java:226)
04-06 00:22:56.839 5471-31392/com.takeal.stm W/System.err: at libcore.io.IoBridge.connectErrno(IoBridge.java:171)
04-06 00:22:56.839 5471-31392/com.takeal.stm W/System.err: at libcore.io.IoBridge.connect(IoBridge.java:122)
04-06 00:22:56.839 5471-31392/com.takeal.stm W/System.err: at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
04-06 00:22:56.839 5471-31392/com.takeal.stm W/System.err: at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:456)
04-06 00:22:56.839 5471-31392/com.takeal.stm W/System.err: at java.lang.reflect.Method.invoke(Native Method)
04-06 00:22:56.839 5471-31392/com.takeal.stm W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
04-06 00:22:56.839 5471-31392/com.takeal.stm W/System.err: at com.splunk.mint.network.util.Delegator.invoke0(Delegator.java:47)
04-06 00:22:56.839 5471-31392/com.takeal.stm W/System.err: at com.splunk.mint.network.util.Delegator.invoke(Delegator.java:39)
04-06 00:22:56.839 5471-31392/com.takeal.stm W/System.err: at com.splunk.mint.network.socket.MonitoringSocketImpl.connect(MonitoringSocketImpl.java:179)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at java.net.Socket.connect(Socket.java:882)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.platform.AndroidPlatform.connectSocket(AndroidPlatform.java:63)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:220)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:146)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:186)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:121)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:100)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
04-06 00:22:56.840 5471-31392/com.takeal.stm W/System.err: at com.takeal.stm.services.LoginInterseptor.intercept(LoginInterseptor.java:20)
04-06 00:22:56.841 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
04-06 00:22:56.841 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
04-06 00:22:56.841 5471-31392/com.takeal.stm W/System.err: at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:212)
04-06 00:22:56.841 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
04-06 00:22:56.841 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
04-06 00:22:56.841 5471-31392/com.takeal.stm W/System.err: at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:179)
04-06 00:22:56.841 5471-31392/com.takeal.stm W/System.err: at okhttp3.RealCall$AsyncCall.execute(RealCall.java:129)
04-06 00:22:56.841 5471-31392/com.takeal.stm W/System.err: at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
04-06 00:22:56.841 5471-31392/com.takeal.stm W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
04-06 00:22:56.841 5471-31392/com.takeal.stm W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
04-06 00:22:56.841 5471-31392/com.takeal.stm W/System.err: at java.lang.Thread.run(Thread.java:818)
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Returning gzip responses with MockWebServer - Stack Overflow
IOException : ID1ID2: actual 0x00001fef != expected 0x00001f8b at okio.GzipSource.checkEqual(GzipSource.java:205) at okio.GzipSource.
Read more >java.io.IoException Error Condition - LiveCode Forums
IOException : ID1ID2: actual 0x00003c63!= expected 0x00001f8b. I'm building the SOAP XML packet. <?xml version="1.0" encoding="UTF-8"?>
Read more >安卓连接https问题_rimuweinuan - CSDN博客
问题:接口是成功的,okhttp抛异常:java.io.ioexception id1id2 actual 0x00001fef = expected 0x00001f8b. 解决方法:在头部添加Accept-Encoding: ...
Read more >Charles抓包MapLocal返回数据截断问题- HelloMin的博客
... 原因是IOException,再仔细看,发现是某个地址和另一个地址的数据不匹配。 IOException: ID1ID2: actual 0x00000a3c != expected 0x00001f8b ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Or, put another way, this isn’t an Okio or OkHttp problem but likely a problem with the server you’re talking to. You can set the
Accept-Encoding: identity
header on your requests to work around the broken server if you don’t control it.0x0a3c is a newline followed by
<
which indicates your server is returning uncompressed data (likely HTML) despite advertising that the response has been gzipped.