This may seem stupid, but I\'m trying to get the error data when a request fails in Axios.
axios.get(\'foo.com\') .then((response) => {}) .catch((
You can use the spread operator (...) to force it into a new object like this:
...
axios.get('foo.com') .then((response) => {}) .catch((error) => { console.log({...error}) })
Be aware: this will not be an instance of Error.