-
Notifications
You must be signed in to change notification settings - Fork 813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script error when running the UI project #661
Comments
I can no longer reproduce this issue; it may have been related to a local IIS Express server having two web sites (one with the Health UI) pointing to the same SSL port so it may have been trying to pull the script files from the wrong server. |
It is back in 7.0.0-rc2.7!
|
I am trying to get HealthChecksUI to run, but encounter an exception in the browser. Here's what I did:
Create new ASP.NET Core 3.1 app with MVC
Install the following packages:
Install-Package AspNetCore.HealthChecks.UI
Install-Package AspNetCore.HealthChecks.UI.InMemory.Storage
Install-Package AspNetCore.HealthChecks.UI.Client
leading to these settings in the project file:
ConfigureServices:
services.AddHealthChecks();
services.AddHealthChecksUI().AddInMemoryStorage();
Configure
app.UseHealthChecks("/hc", new HealthCheckOptions()
{
Predicate = _ => true,
ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
});
Expected results:
The Health Check UI shows up
Actual results:
I get a blank screen and the following error in the developer tools console:
vendors-dll.js:290 TypeError: e.map is not a function
at healthchecks-bundle.js:6
at t.LivenessTable (healthchecks-bundle.js:6)
at qi (vendors-dll.js:290)
at hs (vendors-dll.js:290)
at lu (vendors-dll.js:290)
at su (vendors-dll.js:290)
at Xs (vendors-dll.js:290)
at vendors-dll.js:290
at t.unstable_runWithPriority (vendors-dll.js:298)
at Ia (vendors-dll.js:290)
es @ vendors-dll.js:290
healthchecks-bundle.js:1 Uncaught TypeError: e.map is not a function
at healthchecks-bundle.js:6
at t.LivenessTable (healthchecks-bundle.js:6)
at qi (vendors-dll.js:290)
at hs (vendors-dll.js:290)
at lu (vendors-dll.js:290)
at su (vendors-dll.js:290)
at Xs (vendors-dll.js:290)
at vendors-dll.js:290
at t.unstable_runWithPriority (vendors-dll.js:298)
at Ia (vendors-dll.js:290)
I am running VS 2019 16.8 Preview 5, with the latest .NET 5 RC SDK although the app I am testing runs on .NET 3.1.
Any ideas would be greatly appreciated!
Imar
The text was updated successfully, but these errors were encountered: