JavaShuo
栏目
标签
Okhttp+Retrofit请求报错:java.io.EOFException: End of input at line 1 column 1
时间 2021-01-07
标签
Android
Retrofit
End of input at line 1 column
栏目
Java
繁體版
原文
原文链接
一、出现问题:我的情况是请求返回的RequestCode=200,明明请求成功,但是不走onResponse方法体,而是走onFailure; 二、分析问题:后来发现是因为我设置返回的json数据格式与后台返回的数据格式不匹配导致的; 三、进一步发现问题:最后问题定位在:服务器给我返回的数据是空的,什么都没有,我也从网上找到那种用String做返回体也不管用,可能这个body连个String都算不
>>阅读原文<<
相关文章
1.
android retrofit End of input at line 1 column 1 path
2.
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
3.
firefox报错 关于 JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
4.
logstash启动报配置文件错误Expected one of #, input, filter, output at line 1, column 1 (byte 1) after
5.
jmeter使用log.info报错[Encountered "log" at line 2, column 1.]
6.
错误: expected declaration or statement at end of input
7.
Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 492
8.
Python 报错问题:Encountered "counter" at line 8, column 7. Was expecting one of:
9.
Android同步错误 Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
10.
fetch报错SyntaxError: Unexpected end of JSON input at fetch.then.response
更多相关文章...
•
HTTP 请求方法
-
HTTP 教程
•
ASP Column 属性
-
ASP 教程
•
为了进字节跳动,我精选了29道Java经典算法题,带详细讲解
•
算法总结-回溯法
相关标签/搜索
java.io.eofexception
column
1-1
1+1
1%
1′
line
end
input
Android
Java
PHP 7 新特性
NoSQL教程
Spring教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
外部其他进程嵌入到qt FindWindow获得窗口句柄 报错无法链接的外部符号 [email protected] 无法被([email protected]@[email protected]@@引用
2.
UVa 11524 - InCircle
3.
The Monocycle(bfs)
4.
VEC-C滑窗
5.
堆排序的应用-TOPK问题
6.
实例演示ElasticSearch索引查询term,match,match_phase,query_string之间的区别
7.
数学基础知识 集合
8.
amazeUI 复择框问题解决
9.
背包问题理解
10.
算数平均-几何平均不等式的证明,从麦克劳林到柯西
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
android retrofit End of input at line 1 column 1 path
2.
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
3.
firefox报错 关于 JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
4.
logstash启动报配置文件错误Expected one of #, input, filter, output at line 1, column 1 (byte 1) after
5.
jmeter使用log.info报错[Encountered "log" at line 2, column 1.]
6.
错误: expected declaration or statement at end of input
7.
Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 492
8.
Python 报错问题:Encountered "counter" at line 8, column 7. Was expecting one of:
9.
Android同步错误 Caused by: java.io.EOFException: Unexpected end of ZLIB input stream
10.
fetch报错SyntaxError: Unexpected end of JSON input at fetch.then.response
>>更多相关文章<<