Closed rscooper closed 5 years ago
That error means you have a wrong configuration. Be sure the UI is pointing to and endpoint that is serving the health JSON result serialized using the UIResponseWriter present in the UI.Client package.
Could you paste your current configuration?.
You can also check the samples section to find different ways of configuring the UI.
Sure, I'm using:
endpoints.MapHealthChecksUI(x =>
{
x.ApiPath = "/health";
x.UIPath = "/health-ui";
});
and
app.UseHealthChecks("/health", new HealthCheckOptions
{
Predicate = x => true,
ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
});
The response from '/health' endpoint returns:
{"status":"Degraded","totalDuration":"00:00:00.0533524","entries":{"self":{"data":{},"duration":"00:00:00.0000701","status":"Healthy"},"Database":{"data":{},"duration":"00:00:00.0425908","status":"Healthy"},"RabbitMq":{"data":{},"description":"None of the specified endpoints were reachable","duration":"00:00:00.0512502","exception":"None of the specified endpoints were reachable","status":"Degraded"}}}
Your configuration is not valid rscooper, you are using the same path for healtz ( the healthchecks json result information ) and for the UI api. Please checkout the samples to see how ApiAndUI can be in the sample project.
I close this issue, please reopen if you have any other problem!
hi, Please could you be more explicit when you say that you have the same path, I have the same error ".filter is not a function".
I would appreciate it if you could write an example here below
@josejavierpaez , you have different ways to configure the UI (standalone, in the same host than the healthchecks, etc) in this samples folder, take a look to them and if you still have doubts tell us!:
https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/tree/master/samples
Hi,
I'm encountering a JavaScript error in the latest AspNetCore.HealthChecks.UI v3.0.0 release.
The API request returns successfully but the console (Chrome & FF) shows an error:
The page displays:
Is it just me?
Thanks.