我无法使用axios获得 500错误
的响应文本。
在开发者工具的“网络”选项卡中,我可以找到以下错误信息:
{"Message":"500 error message 0","Code":0,"Type":"error"}
我使用
axios()
.then(function(done) {
//fine and can get done.data
})
.catch(function(error) {
console.log(error.message);
});
但是我只能获得。Request failed with status code 500
那么我该如何使用 axios 获取响应文本呢?