FATAL EXCEPTION: OkHttp Dispatcher

E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher

Process: com.inspur.zxzzfw, PID: 32184

java.lang.NullPointerException: interceptor com.inspur.zxzzfw.base.BaseApp b @ a 7 f 649 d r e t u r n e d n u l l a t b 7. g . b ( S o u r c e F i l e : 239 ) a t b 7. g . p r o c e e d ( U n k n o w n S o u r c e : 9 ) a t o k h t t p 3. R e a l C a l l . g e t R e s p o n s e W i t h I n t e r c e p t o r C h a i n ( S o u r c e F i l e : 123 ) a t o k h t t p 3. R e a l C a l l b@a7f649d returned null at b7.g.b(SourceFile:239) at b7.g.proceed(Unknown Source:9) at okhttp3.RealCall.getResponseWithInterceptorChain(SourceFile:123) at okhttp3.RealCall b@a7f649dreturnednullatb7.g.b(SourceFile:239)atb7.g.proceed(UnknownSource:9)atokhttp3.RealCall.getResponseWithInterceptorChain(SourceFile:123)atokhttp3.RealCallAsyncCall.run(SourceFile:52)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)

at java.lang.Thread.run(Thread.java:1015)


错误原因: response.body().string()中的 (.string)只能使用一次

相关推荐
careathers10 小时前
Vue3 + Spring WebMVC 验证码案例中的跨域问题与解决方法
okhttp
linwq81 天前
OkHttp使用和源码分析学习(二)
学习·okhttp
初见_Dream2 天前
Retrofit+OkHttp+ViewModel
xml·okhttp·retrofit
清风细雨_林木木4 天前
wangEditor 编辑器 Vue 2.0 + Nodejs 配置
vue.js·okhttp·编辑器
WeiLai11128 天前
DeepSeekApi对接流式输出异步聊天功能:基于Spring Boot和OkHttp的SSE应用实现
人工智能·spring boot·后端·okhttp
闲暇部落8 天前
Android网络框架——OKHttp
android·java·okhttp
网络安全(华哥)9 天前
CSRF攻击&XSS攻击
okhttp·xss·csrf
不亭10 天前
python自动化测试之统一请求封装及通过文件实现接口关联
okhttp
2501_9032386514 天前
PrimeFaces Poll组件实现周期性Ajax调用
前端·ajax·okhttp·个人开发
张小勇14 天前
fetch请求总结,fastadmin中后台接口强制返回json数据
okhttp·json