I cannot get the response text in the 500 error
with axios.
in Network tab in dev tools i can find the error message like this
{"Message":"500 error message 0","Code":0,"Type":"error"}
and I use
axios()
.then(function(done) {
//fine and can get done.data
})
.catch(function(error) {
console.log(error.message);
});
but I can only get
Request failed with status code 500
so how can I get the response text with axios