You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I only get back the status code, and not the response data (as printed above) back. I'm aware that for responseType: 'stream' the error.response.data is meant to be the actual stream. But I can't find the response message anywhere else in the error.response structure.
Doesn't axios return this back when it errors for streams?
Context
axios version: v0.18.0
Environment: node v8.6.0
The text was updated successfully, but these errors were encountered:
As this is a stream, the exact error message can be deciphered from the stream buffer if really needed. We no longer need to return this error so I'm closing this issue.
But as an enhancement it might be good to extract error response message out of the buffer into the main error.response object.
Summary
The following server response (which is returned by postman)
Status: 4xx-5xx
Is not present in the catch, when called with:
I only get back the status code, and not the response data (as printed above) back. I'm aware that for
responseType: 'stream'
theerror.response.data
is meant to be the actual stream. But I can't find the response message anywhere else in theerror.response
structure.Doesn't
axios
return this back when it errors for streams?Context
The text was updated successfully, but these errors were encountered: