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.
.Net core webapi2.1生成exe可執行文件
2.
查看dll信息工具-oleview
3.
c++初學者
4.
VM下載及安裝
5.
win10下如何安裝.NetFrame框架
6.
WIN10 安裝
7.
JAVA的環境配置
8.
idea全局配置maven
9.
vue項目啓動
10.
SVN使用-Can't remove directoryXXXX,目錄不是空的,項目報錯,有紅叉
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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
>>更多相關文章<<