dotnet / aspire

An opinionated, cloud ready stack for building observable, production ready, distributed applications in .NET
https://learn.microsoft.com/dotnet/aspire
MIT License
3.8k stars 450 forks source link

[AzureTools][Aspire] An error occurs in the command prompt when clicking "Console" tab in the left again or more times #4213

Open v-mengwe opened 5 months ago

v-mengwe commented 5 months ago

REGRESSION INFO: Aspire 8.0.0 also reproduces

Clean machine: Win11 x64 23h2 ENU VS Version: VS 17.10.0 [34916.146.d17.10] Aspire Version: 8.0.1 Apply NuGet Feeds

REPRO STEPS:

  1. Create a new Aspire starter App -> F5 in VS.
  2. Click "Console" tab in the left -> Select apiservice resource -> Click "Resource" tab -> Click "View" under 'Logs' for apiservice project -> The webpage automatically jumps to 'Console logs'.
  3. Click "Console" tab in the left again or more times.

Expect: No error occurs in the command prompt.

Actual: An error occurs in the command prompt. Actual

More Info:

  1. This issue doesn't reproduce for the dashboard running this project using CLI.
  2. This issue is unstable, you can F5 again when it does not reproduce.
karolz-ms commented 3 months ago

We had an internal thread about this issue. @JamesNK commented:

The console logs page starts a gRPC call to the host. That call streams logs to the dashboard. The error occurs because rapidly clicking on the console logs page will start and then immediately cancel that call. That then causes a server error if timing is right.

Removing the area-orchestrator label because the issue is not related to DCP.

leslierichardson95 commented 1 month ago

@v-mengwe checking in, are you still experiencing this issue?

davidfowl commented 1 month ago

This is a dashboard issue, we should be making these errors debug level.

v-mengwe commented 1 month ago

@v-mengwe checking in, are you still experiencing this issue?

This issue still reproduces on Aspire 8.2.0. image

v-mengwe commented 1 month ago

@JamesNK Verified on the VS 17.12.0 Preview 2.0 [35303.167.d17.12] with Aspire 9.0.0-preview.4.24454.4, this issue still reproduces. image

JamesNK commented 1 month ago

Requires change in grpc-dotnet: https://github.com/grpc/grpc-dotnet/pull/2527.

Blocked until a grpc-dotnet version with this fix is available.

adamint commented 2 weeks ago

@JamesNK is there any update on this?

JamesNK commented 2 weeks ago

No