Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Dashboard error after starting AppHost on 9.1. #7595

Closed
afscrome opened this issue Feb 13, 2025 · 2 comments · Fixed by #7671
Closed

Dashboard error after starting AppHost on 9.1. #7595

afscrome opened this issue Feb 13, 2025 · 2 comments · Fixed by #7671
Assignees
Milestone

Comments

@afscrome
Copy link
Contributor

Another 9.1 issue that I've only seen once but haven't been able to reproduce since. After starting the app host, I was greeted with a blank page for the dashboard, with the following error in the app host logs. Refreshing the page continued to result in a blank page, but the dashboard did render successfully after opening in a new tab.

fail: Aspire.Hosting.Dashboard.Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
      Unhandled exception in circuit 'jlC3xF46gfX-7rOByTwJKesQ-vv7rm9sx5UV2ggBgY0'.
      System.InvalidOperationException: EditForm requires either a Model parameter, or an EditContext parameter, please provide one of these.
         at Microsoft.AspNetCore.Components.Forms.EditForm.OnParametersSet()
         at Microsoft.AspNetCore.Components.ComponentBase.CallOnParametersSetAsync()
         at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()

Versions

   <Sdk Name="Aspire.AppHost.Sdk" Version="9.1.0-preview.1.25111.2" />
    <PackageReference Include="Aspire.Hosting.AppHost" Version="9.1.0-preview.1.25111.2" />
    <PackageReference Include="Aspire.Hosting.PostgreSQL" Version="9.1.0-preview.1.25111.2" />
@JamesNK
Copy link
Member

JamesNK commented Feb 19, 2025

I think this is a very rare race condition between threads.

Are you doing any kind of custom authentication?

@afscrome
Copy link
Contributor Author

No custom auth on the dashboard.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants