infinitered / apisauce

Axios + standardized errors + request/response transforms.
MIT License
2.8k stars 184 forks source link

Response data returns sent body #240

Closed Edi-san closed 4 years ago

Edi-san commented 4 years ago

I was messing with the package trying to consume a login api in react native that I just made. And I had problem where the response data from the request was an object that I sent in the request.

Im gonna send a printscreen instead of the actual code because of the log: image (I setup a requestTransform to throw an exception on !response.ok)

And I can tell it is working:

image

Hope you guys can help me out