Skip to content

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

@BlieNuckel

Description

@BlieNuckel

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions