Skip to content

Unhandled exception requests (500) are not captured #4

@georgidhristov

Description

@georgidhristov

Description

Requests resulting in unhandled exceptions (500 Internal Server Error) are not captured by DebugProbe.

The request appears in Swagger as a 500 response, but no entry is stored in the DebugProbe dashboard.

Expected

Requests ending with unhandled exceptions should still be captured and visible in DebugProbe.

Actual

Requests with unhandled exceptions are missing entirely from the dashboard.

Notes

Possible cause:

  • request is only stored after await _next(context)
  • exception exits middleware before persistence occurs
  • middleware likely needs try/finally

Reproduction

Create endpoint throwing exception:

throw new Exception();

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is neededpriority: highCritical issue affecting functionality or user experience

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions