Is axios convert 0 to null in response?

490 Views Asked by At

Hello everyone i'm working with apisause(axios wrapper) and calling an api to get statistics, the results is numbers always but i have a special case when the result is 0 axios somehow convert it into null

here is the response from Preview Tap

enter image description here

and when i log the response from axios this is what i get

enter image description here

Any clue Why this is happening ?

Thanks in Advance.

1

There are 1 best solutions below

2
On

Based on the Content-length: "1" I would say, that's the answer from resource. Could you try hitting API with Postman/Fiddler or Swagger UI?