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
Use any HTTP Methods via $http ($get, delete, $put, etc.), try to catch the error like: this.$http .$get("http://nuxthttperrors.io/error") .then(resp => console.log(resp)) .catch(e => console.log(e.response.data));
What is expected ?
Expected to get the error response message, like in network tab in chrome.
P.S. Working like a charm in axios.
What is actually happening?
The error response object is always empty: { name: "HTTPError", response: {} }
The text was updated successfully, but these errors were encountered:
Version
v0.5.0
Reproduction link
https://jsfiddle.net/eobk1pam/1/
Steps to reproduce
Use any HTTP Methods via $http ($get, delete, $put, etc.), try to catch the error like:
this.$http .$get("http://nuxthttperrors.io/error") .then(resp => console.log(resp)) .catch(e => console.log(e.response.data));
What is expected ?
Expected to get the error response message, like in
network
tab in chrome.P.S. Working like a charm in axios.
What is actually happening?
The error response object is always empty:
{ name: "HTTPError", response: {} }
The text was updated successfully, but these errors were encountered: