Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
When an EndpointDataSources throws an exception while building endpoints the exception is observed once on the first request and subsequent requests end up 404-ing.
Expected Behavior
The exception should be thrown every time.
Steps To Reproduce
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapGet("/", () => "Hello World!"u8);
app.Run();
Exceptions (if any)
An exception and then a 404 on the second request.
.NET Version
7.0.100-rc.2.22426.5
Anything else?
No response