You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're using these libraries to send log messages from a Blazor WebAssembly app up to an ASP.NET server in Azure, which in turn logs to ApplicationInsights. However, all exceptions coming from the client are showing up as the type TextException in the logs and are missing the exception details.
On the client side, exceptions are captured using ToString(), and the result ends up wrapped in a TextException server-side.
The only way you should see TextException appear anywhere is some code going to the exception's Type directly; most Serilog sinks etc. won't do that, and instead use ToString(), which for these exceptions will show the original type/stack trace/message.
My guess is there's something in the App Insights sink responsible for this; if you spot it and need help figuring out a workaround, let me know.
We're using these libraries to send log messages from a Blazor WebAssembly app up to an ASP.NET server in Azure, which in turn logs to ApplicationInsights. However, all exceptions coming from the client are showing up as the type
TextException
in the logs and are missing the exception details.How can we fix this?
On the client, our logger is configured like so:
And on the server:
The text was updated successfully, but these errors were encountered: