2026-01-23 15:38:14.1875||ERROR|Backend.Helpers.Exceptions.ExceptionMiddleware||0HNHPME9B7VMN:00000001|Internal Server Error: The operation was canceled. at System.Threading.CancellationToken.ThrowOperationCanceledException() at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.PipeWriterHelpers.TimingPipeFlusher.TimeFlushAsyncAwaited(ValueTask`1 pipeFlushTask, MinDataRate minRate, IHttpOutputAborter outputAborter, CancellationToken cancellationToken) at System.IO.Stream.g__Core|27_0(Stream source, Stream destination, Int32 bufferSize, CancellationToken cancellationToken) at Swashbuckle.AspNetCore.EmbeddedResourceProvider.TryRespondWithFileAsync(HttpContext httpContext) at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Backend.Helpers.UserContextLoggingMiddleware.Invoke(HttpContext context) in C:\Users\shpar\source\repos\WebApiRunner\WebApiRunner\Helpers\UserContextLoggingMiddleware.cs:line 29 at Backend.Helpers.Exceptions.ExceptionMiddleware.InvokeAsync(HttpContext httpContext) in C:\Users\shpar\source\repos\WebApiRunner\WebApiRunner\Helpers\Exceptions\ExceptionMiddleware.cs:line 23 2026-01-23 15:38:14.2795||ERROR|Microsoft.AspNetCore.Server.Kestrel||0HNHPME9B7VMN:00000001|Connection id "0HNHPME9B7VMN", Request id "0HNHPME9B7VMN:00000001": An unhandled exception was thrown by the application. System.InvalidOperationException: Headers are read-only, response has already started. at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpHeaders.ThrowHeadersReadOnlyException() at Microsoft.AspNetCore.Http.DefaultHttpResponse.set_ContentType(String value) at Backend.Helpers.Exceptions.ExceptionMiddleware.HandleExceptionAsync(HttpContext context, Exception exception) in C:\Users\shpar\source\repos\WebApiRunner\WebApiRunner\Helpers\Exceptions\ExceptionMiddleware.cs:line 49 at Backend.Helpers.Exceptions.ExceptionMiddleware.InvokeAsync(HttpContext httpContext) in C:\Users\shpar\source\repos\WebApiRunner\WebApiRunner\Helpers\Exceptions\ExceptionMiddleware.cs:line 43 at Microsoft.AspNetCore.ConcurrencyLimiter.ConcurrencyLimiterMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)