dotnet / dotnet/aspnetcore

Consider running user-provided exception handler even when response has started

Open
#13,170 13 comments 0 reactions 0 assignees View on GitHub
affected-few area-middleware enhancement severity-minor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

Created from https://github.com/aspnet/AspNetCore/issues/12301

If the response has already started, the Exception Handler middleware exits early and doesn't write a response. This makes total sense. However, it also doesn't call the user-provided handler (if any) and it doesn't signal the diagnostic source. This makes diagnosing issues more difficult. We should consider refactoring this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.