요청 관리 에러처리 수정

This commit is contained in:
현성필
2024-01-10 16:13:23 +09:00
parent 476ac44572
commit 19ec9d3bdd
8 changed files with 71 additions and 134 deletions
+6 -9
View File
@@ -438,7 +438,7 @@ class APITester {
$('#confirm_delete_modal').modal('show');
}
getApiRequestModel(apiId){
getApiRequestModel(apiId) {
let foundApi = null;
this.collections.forEach(function (collection) {
collection.apis.forEach(function (api) {
@@ -928,14 +928,11 @@ class APITester {
this.hideLoadingOverlay();
})
.catch(error => {
console.log(error.name)
if (error.name === 'AbortError') {
console.log('Fetch aborted');
} else {
console.log('error3')
$('.toast-body').text(error);
$('.toast').toast('show');
}
// if (error.name === 'AbortError') {
// console.log('Fetch aborted');
// }
$('.toast-body').text(error);
$('.toast').toast('show');
this.hideLoadingOverlay();
});
}