dotnet / docs-aspire

This repository contains .NET Aspire documentation.
https://learn.microsoft.com/dotnet/aspire
MIT License
83 stars 111 forks source link

[WebToolsE2E] Weather page keep loading and it shows "An unhandled exception was thrown by the application" in Console logs when do scenario Tutorial: Use .NET Aspire messaging integrations in ASP.NET Core. #2033

Open Yangfanyue opened 2 weeks ago

Yangfanyue commented 2 weeks ago

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2 ENU
  2. Install Dev17.12.0 build (d17.12-35506.116)
  3. Apply NuGet Feeds.

REPRO STEPS

  1. Do the scenario Tutorial: Use .NET Aspire messaging integrations in ASP.NET Core
  2. In section Run and test the app locally

    • Debug the project
    • On the .NET Aspire dashboard, navigate to webfrontend page > Then go to Weather page

ACTUAL: 2024-11-11T07:59:49 The response has already started, the error page middleware will not be executed. 2024-11-11T07:59:49 fail: Microsoft.AspNetCore.Server.Kestrel[13] 2024-11-11T07:59:49 Connection id "0HN824O85K6EM", Request id "0HN824O85K6EM:0000001F": An unhandled exception was thrown by the application. 2024-11-11T07:59:49 System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found). Image

Describe the issue or suggestion This issue is caused by the missing code in AspireSample.ApiService/Program.cs. Image So it is recommended to modify this part of the document.

Image

balachir commented 2 weeks ago

@Yangfanyue can you investigate whether this is a functional issue? If yes, this should be opened in the aspire repo rather than in the docs-aspire repo.

cc: @v-elenafeng

Yangfanyue commented 2 weeks ago

@balachir This is a docs issue. Updated the steps.