GithubHelp home page GithubHelp logo

Comments (11)

unaizorrilla avatar unaizorrilla commented on June 15, 2024 1

Are you check the samples? UI is working well, we have a issue with exception serialization, and working on it!

from aspnetcore.diagnostics.healthchecks.

espenrl avatar espenrl commented on June 15, 2024 1

v2.2.2 / latest version of Chrome

image

image

variable A

image

A.filter

image

from aspnetcore.diagnostics.healthchecks.

CarlosLanderas avatar CarlosLanderas commented on June 15, 2024

Related issue: #16

from aspnetcore.diagnostics.healthchecks.

unaizorrilla avatar unaizorrilla commented on June 15, 2024

Hi @espenrl

Can you try 2.2.2 version of the UI.Client and UI and check if the issue is solved?

from aspnetcore.diagnostics.healthchecks.

espenrl avatar espenrl commented on June 15, 2024

The same happens in latest version of Edge.

from aspnetcore.diagnostics.healthchecks.

unaizorrilla avatar unaizorrilla commented on June 15, 2024

The sample project for UI works for you? Can you create a repro?

Other guys are using the UI without issues

from aspnetcore.diagnostics.healthchecks.

espenrl avatar espenrl commented on June 15, 2024

My bad. I had this setting pointing directly at the health endpoint. The confusing part was that it almost worked and I thought it was a polyfill issue (the json for the UI api endpoint and the health endpoint are almost the same). Thanks for the help!

public string ApiPath { get; set; } = "/healthchecks-api";

from aspnetcore.diagnostics.healthchecks.

CarlosLanderas avatar CarlosLanderas commented on June 15, 2024

@espenrl thank you for the explanation. Exactly, the error .Filter of undefined is because the answer from the UI middleware returns a list and if you call directly to the health endpoint is an object. The UI should always call to the UI endpoint in order to work properly.

Thanks for the explanation. I Close the issue :)

from aspnetcore.diagnostics.healthchecks.

panna-ahmed avatar panna-ahmed commented on June 15, 2024

@CarlosLanderas I have everything right but still getting this TypeError: A.filter is not a function error.
Here are my config:

app.UseHealthChecks("/health", new HealthCheckOptions()
{
Predicate = _ => true,
ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
})
.UseHealthChecksUI(setup =>
{
setup.ApiPath = "/health";
setup.UIPath = "/health-ui";
});

"HealthChecksUI": { "HealthChecks": [ { "Name": "HTTP Basic", "Uri": "http://localhost:5000/health" } ], "Webhooks": [], "EvaluationTimeOnSeconds": 10, "MinimumSecondsBetweenFailureNotifications": 60 }

and the response coming from server is:
{"status":"Healthy","totalDuration":"00:00:00.0005566","entries":{"Database":{"data":{},"duration":"00:00:00.0005068","status":"Healthy"}}}

In the browser I am looking in http://localhost:5000/health-ui

from aspnetcore.diagnostics.healthchecks.

kafeltz avatar kafeltz commented on June 15, 2024

@panna-ahmed same here... the server is returning a json the UI don't understand.

And taking a look at the source code AspNetCore.Diagnostics.HealthChecks\src\HealthChecks.UI\client\components\LivenessPage.tsx the input is really wrong. The ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse is not sending the correct json to the UI.

from aspnetcore.diagnostics.healthchecks.

CarlosLanderas avatar CarlosLanderas commented on June 15, 2024

@panna-ahmed please check the documentation, you are setting the UI API to the same path of the healthchecks endpoint. That's why the UI is not retrieving the correct data.

Change the UI API path do they don't collide.

from aspnetcore.diagnostics.healthchecks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.