dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.54k stars 10.05k forks source link

Enhanced Navigation Silently Ignores Fetch Network Errors #51618

Open ghost opened 1 year ago

ghost commented 1 year ago

Is there an existing issue for this?

Describe the bug

When a fetch request from enhanced navigation fails (due to the server being offline or a network issue), there is no indiction in the UI. If you look at the network inspector, you can see the failed requests.

Failed requests in the web inspector, but no indication of anything in the UI

Expected Behavior

I would expect the UI to show some sort of error when the fetch requests fail like the UI below

A Blazor page showing a message saying that an unhandled problem has occurred

Steps To Reproduce

Exceptions (if any)

.NET Version

8.0.100-rtm.23524.4

Anything else?

This has been tested on 8.0.100-rc.2.23502.2, 8.0.100-rtm.23524.4 (nightly), and 8.0.200-preview.23523.27 (nightly). All were fresh installs of dotnet on VMs and the nightly NuGet config was added for the nightly ones.

.NET SDK:
 Version:           8.0.100-rtm.23524.4
 Commit:            5bc5eecc5a
 Workload version:  8.0.100-manifests.ea856202

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  14.0
 OS Platform: Darwin
 RID:         osx-arm64
 Base Path:   /usr/local/share/dotnet/sdk/8.0.100-rtm.23524.4/

.NET workloads installed:
 Workload version: 8.0.100-manifests.ea856202
There are no installed workloads to display.

Host:
  Version:      8.0.0-rtm.23519.13
  Architecture: arm64
  Commit:       86c949374e

.NET SDKs installed:
  8.0.100-rtm.23524.4 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.0-rtm.23520.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 8.0.0-rtm.23519.13 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found
ghost commented 1 year ago

Thanks for contacting us.

We're moving this issue to the .NET 9 Planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s). If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues. To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

ghost commented 11 months ago

Thanks for contacting us.

We're moving this issue to the .NET 9 Planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s). If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues. To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

MackinnonBuck commented 4 months ago

After some internal discussion, we're considering retrying the enhanced nav as a full navigation in this case. That way, the native browser behavior dictates the user experience.