You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feel I have fallen for the healthcheck api instead of the healthcheck-ui API configuration trap 馃弲 .
After reconfiguring AddHealthCheckPoint to point to the AddHealthCheck endpoint, the UI now displays correctly.
I still believe this to be a bug, the UI should display something if it lands in this situation, guarding against the payload error. Present showing a blank UI seems not intended.
Original Issue
Please, fill the following sections to help us fix the issue
What happened:
Setup HealthChecksUI in NET 5 project
What you expected to happen:
View Healthcheck status through UI.
How to reproduce it (as minimally and precisely as possible):
Navigate to the /healthchecks-ui/ page
App then navigates to /healthchecks-ui#/healthchecks
See API Call retrieve status from /healthchecks-api/ successfully.
UI Client shows blank page.
Error in browser
Pulling down source, trying to source actual issue
The API data doesn't appear to be in the format of a liveness Array. So it's throwing.
Hello @jafin. You are using /healthchecks-api to expose the healthchecks from Microsoft Package, but also to expose the api path that Healthchecks UI uses. You are assigning the same endpoint to two different things. And the payload the UI is receiving is the one from Microsoft Diagnostics Healthchecks instead of the UI response.
Try using a different path in app.UseHealthchecks, something like /health , /healthz
@CarlosLanderas yes thank you, I did edit my issue diagnosis, the original issue is resolved (problem was as you have described).
But perhaps the UI should still function instead of erroring in console and showing a blank screen?
Edit
I feel I have fallen for the healthcheck api instead of the healthcheck-ui API configuration trap 馃弲 .
After reconfiguring AddHealthCheckPoint to point to the AddHealthCheck endpoint, the UI now displays correctly.
I still believe this to be a bug, the UI should display something if it lands in this situation, guarding against the payload error. Present showing a blank UI seems not intended.
Original Issue
Please, fill the following sections to help us fix the issue
What happened:
Setup HealthChecksUI in NET 5 project
What you expected to happen:
View Healthcheck status through UI.
How to reproduce it (as minimally and precisely as possible):
Navigate to the /healthchecks-ui/ page
App then navigates to /healthchecks-ui#/healthchecks
See API Call retrieve status from /healthchecks-api/ successfully.
UI Client shows blank page.
![image](https://user-images.githubusercontent.com/127927/118741509-b9171b00-b891-11eb-9d15-0997b430e1a6.png)
Error in browser
Pulling down source, trying to source actual issue
The API data doesn't appear to be in the format of a liveness Array. So it's throwing.
Source code sample:
Environment:
The text was updated successfully, but these errors were encountered: