Skip to content

[AspireE2E] Clicking on 'Traces' while the GitHub Copilot Chat window is open will cause the following error: fail: Aspire.Hosting.Dashboard.Model.Assistant.AIContextProvider[0] Error while executing subscriptions. #11923

@vmykagapuz

Description

@vmykagapuz

REGRESSION INFO

  1. This issue reproduces in Aspire 9.5.1
  2. This issue does not reproduce in Aspire 9.4.2

INSTALL STEPS

  1. Clean machine: Win11 x64 24h2 ENU
  2. Install VS 18.0.0 Insiders 2
  3. Add feed for Aspire 13.0
  4. dotnet new install Aspire.ProjectTemplates::13.0.0 preview.1.25508.8 --force`

REPRO STEPS

  1. Open VS > Create a new project > Aspire Starter App [.NET 10.0, Aspire version 13.0] > Create
  2. Build and F5
  3. Open GHCP
  4. Click Traces > Open CMD

ACTUAL
An error occurred when clicking on Traces while the GHCP window is open

GHCPIssue1.mp4

Error message:

fail: Aspire.Hosting.Dashboard.Model.Assistant.AIContextProvider[0]
      Error while executing subscriptions.
      System.ArgumentNullException: Value cannot be null. (Parameter 'source')
         at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
         at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
         at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
         at Aspire.Dashboard.Components.Pages.Traces.<CreateAIContext>b__125_1(IceBreakersBuilder builder, BuildIceBreakersContext context) in /_/src/Aspire.Dashboard/Components/Pages/Traces.razor.cs:line 439
         at Aspire.Dashboard.Model.Assistant.AssistantChatViewModel.PopulatePrompts(AIContext context) in /_/src/Aspire.Dashboard/Model/Assistant/AssistantChatViewModel.cs:line 463
         at Aspire.Dashboard.Model.Assistant.AssistantChatViewModel.<>c__DisplayClass104_0.<<InitializeCoreAsync>b__8>d.MoveNext() in /_/src/Aspire.Dashboard/Model/Assistant/AssistantChatViewModel.cs:line 414
      --- End of stack trace from previous location ---
         at Aspire.Dashboard.Model.Assistant.AIContextProvider.ExecuteSubscriptionsAsync(List`1 subscriptions) in /_/src/Aspire.Dashboard/Model/Assistant/AIContextProvider.cs:line 117

EXPECTED
There should be no error when clicking on Traces

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions