Skip to content

StatusCode cannot be set because the response has already started. #288

@i4004

Description

@i4004
System.InvalidOperationException : StatusCode cannot be set because the response has already started.
  at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ThrowResponseAlreadyStartedException(String value)
  at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.set_StatusCode(Int32 value)
  at Simplify.Web.Middleware.SimplifyWebRequestMiddleware.InvokeAsync(HttpContext context

Return 401 status code from controller with the text response to reproduce this problem.
401 status code - no error.
Other status codes with text response: no errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions