Skip to content

How do I access the response body from an error? #1991

Answered by sindresorhus
renato-oc asked this question in Q&A
Discussion options

You must be logged in to vote

The response, meaning also the body, is attached to the error. It's all in the docs. The response is not visible when logging for practical reasons (the object is huge) and security reasons.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sindresorhus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants