zhou-you / RxEasyHttp

本库是一款基于RxJava2+Retrofit2实现简单易用的网络请求框架,结合android平台特性的网络封装库,采用api链式调用一点到底,集成cookie管理,多种缓存模式,极简https配置,上传下载进度显示,请求错误自动重试,请求携带token、时间戳、签名sign动态配置,自动登录成功后请求重发功能,3种层次的参数设置默认全局局部,默认标准ApiResult同时可以支持自定义的数据结构,已经能满足现在的大部分网络请求。
Apache License 2.0
3.13k stars 615 forks source link

http is onError #237

Closed CodeGather closed 3 years ago

CodeGather commented 3 years ago

请问为什么会报这个错误呢


I/EasyHttp:  
        Content-Type: application/json;charset=UTF-8
I/EasyHttp:     Transfer-Encoding: chunked
I/EasyHttp:     Date: Mon, 18 Jan 2021 09:42:21 GMT
I/EasyHttp:     Cache-Control: no-cache
I/EasyHttp:  
I/EasyHttp:     body:{"msg":"success","code":0,"expire":43200,"token":"1b3aed7272d67ad373dc4823a03b1d9e"}
I/EasyHttp: <-- END HTTP
E/EasyHttp:BaseSubscriber.onError(L:69): -->http is onError
E/EasyHttp:BaseSubscriber.onError(L:71): --> e instanceof ApiException err:com.zhouyou.http.exception.ApiException: NullPointerException
I/EasyHttp:RxUtil$2$1.run(L:85): +++doFinally+++
I/Choreographer: Skipped 435 frames!  The application may be doing too much work on its main thread.

    --------- beginning of system
D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
CodeGather commented 3 years ago

抱歉没看文档,数据结构不一致导致的 没仔细看文档