Closed matthjes closed 6 years ago
Clicking on the "Details" tab leads to this error:
Fetching System Load failed:
Error
columnNumber: 34303
config: Object { timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", … }
fileName: "http://localhost:8100/assets/js/vendors.js"
lineNumber: 5
message: "Request failed with status code 404"
request: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … }
response: Object { data: "", status: 404, statusText: "", … }
stack: "./node_modules/axios/lib/core/createError.js/e.exports@http://localhost:8100/assets/js/vendors.js:5:34303\n./node_modules/axios/lib/core/settle.js/e.exports@http://localhost:8100/assets/js/vendors.js:5:35744\n./node_modules/axios/lib/adapters/xhr.js/e.exports/</_[f]@http://localhost:8100/assets/js/vendors.js:5:30096\n"
The ui doesn't support CSRF you need to disable this in your security config
Hm, CSRF is disabled in the client:
http.csrf().disable()
.authorizeRequests()
.antMatchers("/ping").permitAll()
.antMatchers("/systemstatus").permitAll()
.antMatchers(webConfiguration.getEndpointV1()).permitAll()
.antMatchers(webConfiguration.getEndpointV2()).permitAll()
.anyRequest().authenticated().and()
.httpBasic();
It's also disabled in the admin (I'm using the example from here: https://github.com/codecentric/spring-boot-admin/blob/master/spring-boot-admin-samples/spring-boot-admin-sample-servlet/src/main/java/de/codecentric/boot/admin/SpringBootAdminApplication.java)
Please provide a github project which reproduces the issue
Error Fetching System Load failed:
is totally fine and won't be shown in the ui as not every platform provides the system load metric
Here is a small example project:
https://github.com/matthjes/spring-boot-admin-test
I do not see the NullPointException above, however, I'm getting logged out very frequently when an error occurs.
Attached you'll find an error log (FireFox). Chrome and IE show the same behavior. error_log.txt
The weird NPE is fixed with https://github.com/codecentric/spring-boot-admin/commit/553c88005ae0f25f18fa62ca902d8ed3a1864521
Hi,
I'm using the snapshot version of Spring Boot Admin (2.0.0-SNAPSHOT) and there are sometimes errors shown the the browser log:
Sometimes everything looks fine, but after a browser refresh there are red errors shown on the web page ("error fetching metrics", something like this). After the next refresh everything is fine.
When I add security (login) to the admin then those errors cause the web page to show the login page again.
I can access the endpoint (e.g.
/metrics/jvm.memory.max?tag=area:nonheap
) of my application when I call the respective endpoint directly.Edit: I can see the following error message in my log ("An existing connection was aborted by the host"):
Edit 2:
And some more exceptions: