Commit 356677cf by Johannes Edmeier

Ignore errors when fetching health from UI

parent bb88ac3b
......@@ -39,7 +39,7 @@
},
"devDependencies": {
"@vue/test-utils": "^1.0.0-beta.12",
"autoprefixer": "^8.1.0",
"autoprefixer": "^8.2.0",
"babel-core": "^6.25.0",
"babel-eslint": "^8.2.2",
"babel-jest": "^22.4.3",
......@@ -53,10 +53,10 @@
"css-hot-loader": "^1.3.8",
"css-loader": "^0.28.11",
"css-mqpacker": "^6.0.2",
"eslint": "^4.19.0",
"eslint": "^4.19.1",
"eslint-loader": "^1.9.0",
"eslint-plugin-html": "^4.0.2",
"eslint-plugin-vue": "^4.3.0",
"eslint-plugin-vue": "^4.4.0",
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^1.1.11",
"glob": "^7.1.2",
......
......@@ -63,9 +63,16 @@ class Instance {
}
async fetchHealth() {
return axios.get(uri`instances/${this.id}/actuator/health`, {
headers: {'Accept': actuatorMimeTypes}
});
try {
return await axios.get(uri`instances/${this.id}/actuator/health`, {
headers: {'Accept': actuatorMimeTypes}
});
} catch (error) {
if (error.response) {
return error.response;
}
throw error;
}
}
async fetchEnv(name) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment