Skip to content

Commit 8b92e02

Browse files
committed
Don't validate the http status for health
As 5xx response statuses are valid for the health endpoint, don't validate the response status on the client side for it. fixes #1078
1 parent 57c64b0 commit 8b92e02

File tree

1 file changed

+3
-2
lines changed
  • spring-boot-admin-server-ui/src/main/frontend/services

1 file changed

+3
-2
lines changed

spring-boot-admin-server-ui/src/main/frontend/services/instance.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2018 the original author or authors.
2+
* Copyright 2014-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -80,7 +80,8 @@ class Instance {
8080

8181
async fetchHealth() {
8282
return await this.axios.get(uri`actuator/health`, {
83-
headers: {'Accept': actuatorMimeTypes}
83+
headers: {'Accept': actuatorMimeTypes},
84+
validateStatus: null
8485
});
8586
}
8687

0 commit comments

Comments
 (0)