fix(ui): catch 5xx errors (#1788)

* fix(ui): xray check for data load

* fix(ui): api client catch errors
This commit is contained in:
Shekar Siri 2023-12-19 17:39:43 +01:00 committed by GitHub
parent 77281ebd3e
commit ec4d1ec9a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -159,6 +159,8 @@ export default class APIClient {
} else {
return Promise.reject({ message: `! ${this.init.method} error on ${path}; ${response.status}`, response });
}
}).catch((error) => {
return Promise.reject({ message: `! ${this.init.method} error on ${path};` });
});
}