rawResponse must be successful response

 

rawResponse must be successful response_第1张图片

 

 

使用环境:

       遇到此类报错时查看

java.lang.IllegalArgumentException: rawResponse must be successful response
11-30 09:38:25.717 6518-6518/com.bhxcw.Android W/System.err:     at com.lzy.okgo.model.Response.success(Response.java:50)
11-30 09:38:25.717 6518-6518/com.bhxcw.Android W/System.err:     at com.lzy.okgo.adapter.CacheCall.parseResponse(CacheCall.java:270)
11-30 09:38:25.717 6518-6518/com.bhxcw.Android W/System.err:     at com.lzy.okgo.adapter.CacheCall.access$600(CacheCall.java:34)
11-30 09:38:25.717 6518-6518/com.bhxcw.Android W/System.err:     at com.lzy.okgo.adapter.CacheCall$1.onResponse(CacheCall.java:160)
11-30 09:38:25.717 6518-6518/com.bhxcw.Android W/System.err:     at okhttp3.RealCall$AsyncCall.execute(RealCall.java:126)
11-30 09:38:25.717 6518-6518/com.bhxcw.Android W/System.err:     at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
11-30 09:38:25.717 6518-6518/com.bhxcw.Android W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
11-30 09:38:25.717 6518-6518/com.bhxcw.Android W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
11-30 09:38:25.717 6518-6518/com.bhxcw.Android W/System.err:     at java.lang.Thread.run(Thread.java:818)
11-30 09:38:25.729 6518-6518/com.bhxcw.Android I/Toast: Show toast from OpPackageName:com.bhxcw.Android, PackageName:com.bhxcw.Android

解决方法:

       查看后台请求的方式是GET ,还是POST ,一般这种情况,就是请求方式错了。

如果有其他异常请联系:

QQ群 88627109    欢迎您的到来

你可能感兴趣的:(日记,工作总结)