Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception thrown in the handler meant for catching uncaught exceptions #18

Open
BlieNuckel opened this issue Nov 5, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@BlieNuckel
Copy link
Collaborator

Stacktrace

Category: Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer
EventId: 2
SpanId: 6d85c82bb975af0f
TraceId: 37a27c7861877e34bd866fd39cbfe0ac
ParentId: 0000000000000000
RequestId: 80000788-0001-fb00-b63f-84710c7967bb
RequestPath: /api/users/events/register/all

Connection ID "18086456109425493895", Request ID "80000788-0001-fb00-b63f-84710c7967bb": An unhandled exception was thrown by the application.

Exception: 
System.InvalidOperationException: StatusCode cannot be set because the response has already started.
   at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.ThrowResponseAlreadyStartedException(String name)
   at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.Microsoft.AspNetCore.Http.Features.IHttpResponseFeature.set_StatusCode(Int32 value)
   at TumbleBackend.ExceptionMiddleware.GeneralExceptionMiddleware.Invoke(HttpContext context) in D:\Coding\tumbleRebuild\TumbleBackend\TumbleBackend\ExceptionMiddleware\GeneralExceptionMiddleware.cs:line 27
   at TumbleBackend.ExceptionMiddleware.TimeoutExceptionMiddleware.Invoke(HttpContext context) in D:\Coding\tumbleRebuild\TumbleBackend\TumbleBackend\ExceptionMiddleware\TimeoutExceptionMiddleware.cs:line 27
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Program.<>c.<<<Main>$>b__0_5>d.MoveNext() in D:\Coding\tumbleRebuild\TumbleBackend\TumbleBackend\Program.cs:line 72
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync()

@BlieNuckel BlieNuckel added the bug Something isn't working label Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant