As mentioned above, it is obvious that the format of the obtained response message is wrong when it is converted through fastjson in the process of using okhttp.
Should use
String body = response.body().string();
replace
String body = response.body().toString();
Similar Posts:
- [Solved] okhttp3 Error: java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
- Transcoding of system.web.httputility.urlencode in C #
- C# String was not recognized as a valid DateTime [How to Solve]
- [Solved] java.lang.IllegalArgumentException: Cannot format given Object as a Date
- com.alibaba.fastjson.JSONException: syntax error, expect {, actual [, pos 0
- document.body.scrollTop or document.documentElement.scrollTop
- fastjson java.lang.StackOverflowError [How to Solve]
- hibernate java.lang.StackOverflowError: null
- Server returned HTTP response code: 500 for URL xxxxxxxxxxxxx
- Name Error: name ‘yolo_head’ is not defined [How to Solve]