sentry-dotnet icon indicating copy to clipboard operation
sentry-dotnet copied to clipboard

Exception.Data is not shown in UI

Open slipdef opened this issue 1 month ago • 1 comments

Package

Sentry

.NET Flavor

.NET

.NET Version

9

OS

Windows

OS Version

No response

Development Environment

Visual Studio v17.14

SDK Version

5.15

Self-Hosted Sentry Version

No response

Workload Versions

throw new Exception("test data") { Data = { ["string"] = "123", ["int"] = 456 } };

UseSentry or SentrySdk.Init call

UseSentry

Steps to Reproduce

Just throw any error with exception data in asp.net controller

Expected Result

Should be shown somewhere in the Sentry UI

Actual Result

Not shown at all, though if I open Sentry issue as JSON it is there.

slipdef avatar Dec 13 '25 22:12 slipdef

NET-553

linear[bot] avatar Dec 13 '25 22:12 linear[bot]

@slipdef Tested with latest (v6.0.0) on both Sentry and Sentry.AspNetCore (both MVC and Minimal APIs), but it works in all cases:

Image

The Sentry.AspNetCore case was fixed in v5.6.0 (issue #4027, PR #4106), but you're on v5.15.0, so I'm afraid I'm uncertain where the issue may be.

I also tested the ASP.NET Core MVC case with Sentry.AspNetCore v5.15.0, but I do see the "data" key-value-pairs show up in the mechanism of the exception in Sentry.

Could you provide a minimal reproduction of the problem? And/or some more details ... I believe that I'm missing something.

Flash0ver avatar Dec 15 '25 12:12 Flash0ver