Skip to content
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

System.NullReferenceException: Object reference not set to an instance of an object. when opening the metrics view #13

Open
devurandom opened this issue May 27, 2024 · 0 comments

Comments

@devurandom
Copy link

When I click on "Metrics" (navigate to http://localhost:8080/metrics) the page does not load and I see the following console output from dotnet run:

warn: Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer[100]
      Unhandled exception rendering component: Object reference not set to an instance of an object.
      System.NullReferenceException: Object reference not set to an instance of an object.
         at OTLPView.Pages.Metrics.<BuildRenderTree>b__21_14(RenderTreeBuilder __builder6) in [REDACTED]/OTLPView/OTLPView/Pages/Metrics.razor:line 69
         at Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.AddContent(Int32 sequence, RenderFragment fragment)
         at MudBlazor.MudCardContent.BuildRenderTree(RenderTreeBuilder __builder)
         at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)
fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
      Unhandled exception in circuit 'XG7FWGQ_qSEIoAnEvNRqtGMaoLuxmCgAliH-y9PPJ-I'.
      System.NullReferenceException: Object reference not set to an instance of an object.
         at OTLPView.Pages.Metrics.<BuildRenderTree>b__21_14(RenderTreeBuilder __builder6) in [REDACTED]/OTLPView/OTLPView/Pages/Metrics.razor:line 69
         at Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder.AddContent(Int32 sequence, RenderFragment fragment)
         at MudBlazor.MudCardContent.BuildRenderTree(RenderTreeBuilder __builder)
         at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)

In case this error is caused by my local changes: I had to patch OTLPView to make it run on my machine, see:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant