Skip to content

Commit 134d83a

Browse files
author
Johannes Stelzer
committed
Recognize status 500 and java.net.ConnectException from zuul as offline
1 parent bef593c commit 134d83a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-admin-server-ui/app/js/controller/overviewCtrl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports = function ($scope, $location, $interval, $q, Application) {
3535
.error(function (response, httpStatus) {
3636
if (httpStatus === 503) {
3737
app.status = response.status;
38-
} else if (httpStatus === 404 || httpStatus === 0) {
38+
} else if (httpStatus === 404 || httpStatus === 0 || (httpStatus === 500 && response.exception === 'java.net.ConnectException')) {
3939
app.status = 'OFFLINE';
4040
} else {
4141
app.status = 'UNKNOWN';

0 commit comments

Comments
 (0)