question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

response json body is not show when parse error

See original GitHub issue

✍️ Describe the bug

response json body is not show

💣 Steps to reproduce

data class SomeData(val someValue: Boolean)

interface SomeService {
    @GET("test")
    fun config(): Call<SomeData>  
}

if server return {"someValue": true}, i will see it in chucker, if server return {"someValue": 1}, i can not see it in chucker, i need it

🔧 Expected behavior

📷 Screenshots

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
czy1121commented, Oct 19, 2020

solved, thks @MiSikora @vbuberen

0reactions
MiSikoracommented, Oct 5, 2020

I’m not quite sure if this was the issue because it should not happen in the first place given the info. I’m not 100% certain if this is the case but it might be that the response body in error cases was not closed in finally block or with use() function (in OPs code). And nothing was displayed because since 3.2.0 we rely on response body being closed in order to update the transaction.

More info from @czy1121 is certainly welcome. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while parsing JSON Response in REST API Post call
I am using Outsystems 10 and trying to consume a REST API (single method). I have copied and pasted the REST Request and...
Read more >
Error while using body.json() for parsing response from http.get()
Tried using body.json() to assign data to an array of object but as it returns a promise tried this. But browser throws error...
Read more >
SyntaxError: JSON.parse: bad parsing - JavaScript | MDN
JSON.parse() parses a string as JSON. This string has to be valid JSON and will throw this error if incorrect syntax was encountered....
Read more >
HTTP status and error codes for JSON | Cloud Storage
Error responses usually include a JSON document in the response body, ... parseError, Could not parse the body of the request according to...
Read more >
Parse JSON not showing all columns
And then I'm parsing the JSON response with a schema created from the ... I got the error of a null being returned...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found