Reputation: 470
My application was working fine, and then the next day I ran it (dotnet run) and it started returning 400 for all requests, with no message. I can reproduce the issue on various machines; however, some of my coworkers cannot.
I am unable to get my code to break on the exception - all break points seem to lead to a successful response. I've tried changing my debug level and configuring logging in Kestrel using:
.ConfigureLogging((hostingContext, logging) =>
{
logging.AddConsole();
logging.AddDebug();
logging.AddEventSourceLogger();
})
I also tried adding some middleware per this post: https://exceptionnotfound.net/using-middleware-to-log-requests-and-responses-in-asp-net-core/
This did not give me anything more than it is returning a 400.
How can I get more about the error so that I understand what is causing the underlying 400?
What I'm seeing:
Microsoft.AspNetCore.Hosting.Internal.WebHost:Information: Request starting HTTP/1.1 GET [my url]
Microsoft.AspNetCore.Hosting.Internal.WebHost:Information: Request finished in 1044.473ms 400
Some obvious culprits that I have ruled out:
Upvotes: 0
Views: 306