-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
DoneThis issue has been fixedThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssemblyThis issue is related to and / or impacts Blazor WebAssembly
Milestone
Description
If an unhandled exception occurs in a Blazor WebAssembly app it shows up in the browser console:
But copying this error information is pretty messy. If I try to just select and do a copy & paste I get something like this:
Failed to load resource: the server responded with a status of 500 ()
blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 Unhandled exception rendering component: Could not load settings from '_configuration/Microsoft.AspNetCore.Components.WebAssembly.Authentication'
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 Error: Could not load settings from '_configuration/Microsoft.AspNetCore.Components.WebAssembly.Authentication'
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 at Function.createUserManager (https://localhost:44381/_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js:1:4664)
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 at async Function.init (https://localhost:44381/_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js:1:4124)
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 Microsoft.JSInterop.JSException: Could not load settings from '_configuration/Microsoft.AspNetCore.Components.WebAssembly.Authentication'
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 Error: Could not load settings from '_configuration/Microsoft.AspNetCore.Components.WebAssembly.Authentication'
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 at Function.createUserManager (https://localhost:44381/_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js:1:4664)
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 at async Function.init (https://localhost:44381/_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js:1:4124)
p.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 at System.Threading.Tasks.ValueTask`1[TResult].get_Result () <0x2dbdc40 + 0x0002c> in <filename unknown>:0
...
Is there anyway we can make it easier and cleaner to report this error information?
hakenr
Metadata
Metadata
Assignees
Labels
DoneThis issue has been fixedThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssemblyThis issue is related to and / or impacts Blazor WebAssembly
