https://github.com/ryanclementshax/notfoundbugexample
https://github.com/ryanclementshax/notfoundbugexample
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ryanclementshax/notfoundbugexample
- Owner: RyanClementsHax
- License: mit
- Created: 2021-03-18T13:36:21.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-19T12:10:59.000Z (about 5 years ago)
- Last Synced: 2025-06-02T06:05:50.246Z (about 1 year ago)
- Language: C#
- Size: 12.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NotFoundBugExample
This is an example repo to show a bug with `UseExceptionHandler` with `Aspnet Core`. See the [Github issue](https://github.com/dotnet/aspnetcore/issues/31024) for more details.
## Resolution
It turns out I was using the exception handler middleware incorrectly. The exception handler middleware has an option `AllowStatusCode404Response` is set to `false` by default. The head of `master` in this repo contains the code that gets everything to work.