AspNetCore Health Checks UI Reporting Wrongly

Viewed 601

I've been having a little issue implementing AspNetCore.HealthChecks.UI correctly. I have two endpoints that run health checks using the "live" and "ready" as tags. Both endpoints work work as expected but after implementing the HealthChecksUI, The health check results displayed is always "Unhealthy An error occurred while sending the request." even though the endpoint returns "Healthy" from postman. Please see screenshots and relevant code snippets and configurations.

enter image description here enter image description here

AppSettings Configuration

"HealthChecksUI": {
    "HealthChecks": [
      {
        "Name": "Crowd Funding App",
        "Uri": "http://localhost:5001/healthui"
      }
    ],
    "EvaluationTimeinSeconds": 10,
    "MinimumSecondsBetweenFailureNotifications": 60
  }

In the Configure function of the startup class, I have the following code.

enter image description here

0 Answers
Related