2026-02-04 01:28:17.4262 Ocelot.Logging.AspDotNetLogger.LogError Error: requestId: 80005645-0002-f500-b63f-84710c7967bb, previousRequestId: no previous request id, message: Exception caught in global error handler, exception message: The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived', exception stack: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) RequestId: 80005645-0002-f500-b63f-84710c7967bb, exception: System.Net.WebSockets.WebSocketException (0x80004005): The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) ExecutionContext.RunInternal => d__4.MoveNext => AspDotNetLogger.LogError 2026-02-04 02:07:59.0092 Ocelot.Logging.AspDotNetLogger.LogError Error: requestId: 80006005-0008-f300-b63f-84710c7967bb, previousRequestId: no previous request id, message: Exception caught in global error handler, exception message: The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived', exception stack: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) RequestId: 80006005-0008-f300-b63f-84710c7967bb, exception: System.Net.WebSockets.WebSocketException (0x80004005): The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) ExecutionContext.RunInternal => d__4.MoveNext => AspDotNetLogger.LogError 2026-02-04 03:49:03.2682 Ocelot.Logging.AspDotNetLogger.LogError Error: requestId: 80004445-0000-f700-b63f-84710c7967bb, previousRequestId: no previous request id, message: Exception caught in global error handler, exception message: The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived', exception stack: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) RequestId: 80004445-0000-f700-b63f-84710c7967bb, exception: System.Net.WebSockets.WebSocketException (0x80004005): The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) ExecutionContext.RunInternal => d__4.MoveNext => AspDotNetLogger.LogError 2026-02-04 05:36:03.3189 Ocelot.Logging.AspDotNetLogger.LogError Error: requestId: 80003bee-0004-fa00-b63f-84710c7967bb, previousRequestId: no previous request id, message: Exception caught in global error handler, exception message: The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived', exception stack: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) RequestId: 80003bee-0004-fa00-b63f-84710c7967bb, exception: System.Net.WebSockets.WebSocketException (0x80004005): The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) ExecutionContext.RunInternal => d__4.MoveNext => AspDotNetLogger.LogError 2026-02-04 06:16:33.4220 Ocelot.Logging.AspDotNetLogger.LogError Error: requestId: 80006243-0008-f900-b63f-84710c7967bb, previousRequestId: no previous request id, message: Exception caught in global error handler, exception message: The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived', exception stack: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) RequestId: 80006243-0008-f900-b63f-84710c7967bb, exception: System.Net.WebSockets.WebSocketException (0x80004005): The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) ExecutionContext.RunInternal => d__4.MoveNext => AspDotNetLogger.LogError 2026-02-04 07:56:45.4196 Ocelot.Logging.AspDotNetLogger.LogError Error: requestId: 80006049-0008-f300-b63f-84710c7967bb, previousRequestId: no previous request id, message: Exception caught in global error handler, exception message: The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived', exception stack: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) RequestId: 80006049-0008-f300-b63f-84710c7967bb, exception: System.Net.WebSockets.WebSocketException (0x80004005): The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) ExecutionContext.RunInternal => d__4.MoveNext => AspDotNetLogger.LogError 2026-02-04 08:50:14.9168 Ocelot.Logging.AspDotNetLogger.LogError Error: requestId: 80004447-0000-f700-b63f-84710c7967bb, previousRequestId: no previous request id, message: Exception caught in global error handler, exception message: The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived', exception stack: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) RequestId: 80004447-0000-f700-b63f-84710c7967bb, exception: System.Net.WebSockets.WebSocketException (0x80004005): The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) ExecutionContext.RunInternal => d__4.MoveNext => AspDotNetLogger.LogError 2026-02-04 09:00:03.6795 Ocelot.Logging.AspDotNetLogger.LogError Error: requestId: 80003121-000e-fa00-b63f-84710c7967bb, previousRequestId: no previous request id, message: Exception caught in global error handler, exception message: The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived', exception stack: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) RequestId: 80003121-000e-fa00-b63f-84710c7967bb, exception: System.Net.WebSockets.WebSocketException (0x80004005): The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) ExecutionContext.RunInternal => d__4.MoveNext => AspDotNetLogger.LogError 2026-02-04 09:59:15.0819 Ocelot.Logging.AspDotNetLogger.LogError Error: requestId: 8000639f-0000-f800-b63f-84710c7967bb, previousRequestId: no previous request id, message: Exception caught in global error handler, exception message: The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived', exception stack: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) RequestId: 8000639f-0000-f800-b63f-84710c7967bb, exception: System.Net.WebSockets.WebSocketException (0x80004005): The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) ExecutionContext.RunInternal => d__4.MoveNext => AspDotNetLogger.LogError 2026-02-04 11:02:25.0137 Ocelot.Logging.AspDotNetLogger.LogError Error: requestId: 80004b1c-000a-f200-b63f-84710c7967bb, previousRequestId: no previous request id, message: Exception caught in global error handler, exception message: The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived', exception stack: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) RequestId: 80004b1c-000a-f200-b63f-84710c7967bb, exception: System.Net.WebSockets.WebSocketException (0x80004005): The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) ExecutionContext.RunInternal => d__4.MoveNext => AspDotNetLogger.LogError 2026-02-04 11:13:55.0408 Ocelot.Logging.AspDotNetLogger.LogError Error: requestId: 800062c7-0008-f900-b63f-84710c7967bb, previousRequestId: no previous request id, message: Exception caught in global error handler, exception message: The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived', exception stack: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) RequestId: 800062c7-0008-f900-b63f-84710c7967bb, exception: System.Net.WebSockets.WebSocketException (0x80004005): The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) ExecutionContext.RunInternal => d__4.MoveNext => AspDotNetLogger.LogError 2026-02-04 11:52:30.7138 Ocelot.Logging.AspDotNetLogger.LogError Error: requestId: 80004027-000a-f900-b63f-84710c7967bb, previousRequestId: no previous request id, message: Exception caught in global error handler, exception message: The remote party closed the WebSocket connection without completing the close handshake., exception stack: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context), inner exception message Cannot access a disposed object. Object name: 'MemoryPool'., inner exception stack at System.Buffers.MemoryPoolThrowHelper.ThrowObjectDisposedException(ExceptionArgument argument) at System.Buffers.SlabMemoryPool.Lease() at System.IO.Pipelines.Pipe.AllocateSegment(Int32 sizeHint) at System.IO.Pipelines.Pipe.AllocateWriteHeadSynchronized(Int32 sizeHint) at Microsoft.AspNetCore.Server.IIS.Core.OutputProducer.WriteAsync(ReadOnlyMemory`1 buffer, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.WriteAsync(ReadOnlyMemory`1 memory, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.HttpResponseStream.WriteAsync(ReadOnlyMemory`1 source, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.HttpUpgradeStream.WriteAsync(ReadOnlyMemory`1 source, CancellationToken cancellationToken) at System.Net.WebSockets.ManagedWebSocket.SendFrameFallbackAsync(MessageOpcode opcode, Boolean endOfMessage, ReadOnlyMemory`1 payloadBuffer, CancellationToken cancellationToken) RequestId: 80004027-000a-f900-b63f-84710c7967bb, exception: System.Net.WebSockets.WebSocketException (0x80004005): The remote party closed the WebSocket connection without completing the close handshake. ---> System.ObjectDisposedException: Cannot access a disposed object. Object name: 'MemoryPool'. at System.Buffers.MemoryPoolThrowHelper.ThrowObjectDisposedException(ExceptionArgument argument) at System.Buffers.SlabMemoryPool.Lease() at System.IO.Pipelines.Pipe.AllocateSegment(Int32 sizeHint) at System.IO.Pipelines.Pipe.AllocateWriteHeadSynchronized(Int32 sizeHint) at Microsoft.AspNetCore.Server.IIS.Core.OutputProducer.WriteAsync(ReadOnlyMemory`1 buffer, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.WriteAsync(ReadOnlyMemory`1 memory, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.HttpResponseStream.WriteAsync(ReadOnlyMemory`1 source, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.HttpUpgradeStream.WriteAsync(ReadOnlyMemory`1 source, CancellationToken cancellationToken) at System.Net.WebSockets.ManagedWebSocket.SendFrameFallbackAsync(MessageOpcode opcode, Boolean endOfMessage, ReadOnlyMemory`1 payloadBuffer, CancellationToken cancellationToken) at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) The remote party closed the WebSocket connection without completing the close handshake. at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) ExecutionContext.RunInternal => d__4.MoveNext => AspDotNetLogger.LogError 2026-02-04 11:52:30.7339 Panda.ApiGateway.ErrorHandlingMiddleware.HandleExceptionAsync Error: ErrorMsg:An error occurred while writing to logger(s). (Cannot access a disposed object. Object name: 'EventLogInternal'.); StackTrace: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.OcelotMiddlewareExtensions.<>c__DisplayClass5_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware.Invoke(HttpContext httpContext) at Panda.ApiGateway.ErrorHandlingMiddleware.InvokeAsync(HttpContext context) ExecutionContext.RunInternal => d__4.MoveNext => ErrorHandlingMiddleware.HandleExceptionAsync 2026-02-04 11:52:30.7915 Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext+Log.ApplicationError Error: Connection ID "17942340960004358182", Request ID "80004027-000a-f900-b63f-84710c7967bb": An unhandled exception was thrown by the application. Cannot access a disposed object. Object name: 'EventLogInternal'. at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at System.Diagnostics.EventLog.WriteEvent(EventInstance instance, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|12_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) d__2.MoveNext => IISHttpContext.ReportApplicationError => Log.ApplicationError 2026-02-04 11:52:30.7915 Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext+d__165.MoveNext Error: Unexpected exception in IISHttpContext.HandleRequest. Cannot access a disposed object. Object name: 'EventLogInternal'. at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at System.Diagnostics.EventLog.WriteEvent(EventInstance instance, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|12_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) AsyncStateMachineBox`1.MoveNext => ExecutionContext.RunInternal => d__165.MoveNext 2026-02-04 11:52:30.8601 Ocelot.Logging.AspDotNetLogger.LogError Error: requestId: 800062c9-0008-f900-b63f-84710c7967bb, previousRequestId: no previous request id, message: Exception caught in global error handler, exception message: The remote party closed the WebSocket connection without completing the close handshake., exception stack: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context), inner exception message Cannot access a disposed object. Object name: 'MemoryPool'., inner exception stack at System.Buffers.MemoryPoolThrowHelper.ThrowObjectDisposedException(ExceptionArgument argument) at System.Buffers.SlabMemoryPool.Lease() at System.IO.Pipelines.Pipe.AllocateSegment(Int32 sizeHint) at System.IO.Pipelines.Pipe.AllocateWriteHeadSynchronized(Int32 sizeHint) at Microsoft.AspNetCore.Server.IIS.Core.OutputProducer.WriteAsync(ReadOnlyMemory`1 buffer, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.WriteAsync(ReadOnlyMemory`1 memory, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.HttpResponseStream.WriteAsync(ReadOnlyMemory`1 source, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.HttpUpgradeStream.WriteAsync(ReadOnlyMemory`1 source, CancellationToken cancellationToken) at System.Net.WebSockets.ManagedWebSocket.SendFrameFallbackAsync(MessageOpcode opcode, Boolean endOfMessage, ReadOnlyMemory`1 payloadBuffer, CancellationToken cancellationToken) RequestId: 800062c9-0008-f900-b63f-84710c7967bb, exception: System.Net.WebSockets.WebSocketException (0x80004005): The remote party closed the WebSocket connection without completing the close handshake. ---> System.ObjectDisposedException: Cannot access a disposed object. Object name: 'MemoryPool'. at System.Buffers.MemoryPoolThrowHelper.ThrowObjectDisposedException(ExceptionArgument argument) at System.Buffers.SlabMemoryPool.Lease() at System.IO.Pipelines.Pipe.AllocateSegment(Int32 sizeHint) at System.IO.Pipelines.Pipe.AllocateWriteHeadSynchronized(Int32 sizeHint) at Microsoft.AspNetCore.Server.IIS.Core.OutputProducer.WriteAsync(ReadOnlyMemory`1 buffer, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.WriteAsync(ReadOnlyMemory`1 memory, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.HttpResponseStream.WriteAsync(ReadOnlyMemory`1 source, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.HttpUpgradeStream.WriteAsync(ReadOnlyMemory`1 source, CancellationToken cancellationToken) at System.Net.WebSockets.ManagedWebSocket.SendFrameFallbackAsync(MessageOpcode opcode, Boolean endOfMessage, ReadOnlyMemory`1 payloadBuffer, CancellationToken cancellationToken) at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) The remote party closed the WebSocket connection without completing the close handshake. at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) ExecutionContext.RunInternal => d__4.MoveNext => AspDotNetLogger.LogError 2026-02-04 11:52:30.8663 Panda.ApiGateway.ErrorHandlingMiddleware.HandleExceptionAsync Error: ErrorMsg:An error occurred while writing to logger(s). (Cannot access a disposed object. Object name: 'EventLogInternal'.); StackTrace: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.OcelotMiddlewareExtensions.<>c__DisplayClass5_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware.Invoke(HttpContext httpContext) at Panda.ApiGateway.ErrorHandlingMiddleware.InvokeAsync(HttpContext context) ExecutionContext.RunInternal => d__4.MoveNext => ErrorHandlingMiddleware.HandleExceptionAsync 2026-02-04 11:52:30.8663 Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext+Log.ApplicationError Error: Connection ID "17942340951414432456", Request ID "800062c9-0008-f900-b63f-84710c7967bb": An unhandled exception was thrown by the application. Cannot access a disposed object. Object name: 'EventLogInternal'. at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at System.Diagnostics.EventLog.WriteEvent(EventInstance instance, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|12_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) d__2.MoveNext => IISHttpContext.ReportApplicationError => Log.ApplicationError 2026-02-04 11:52:30.8663 Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext+d__165.MoveNext Error: Unexpected exception in IISHttpContext.HandleRequest. Cannot access a disposed object. Object name: 'EventLogInternal'. at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at System.Diagnostics.EventLog.WriteEvent(EventInstance instance, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|12_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) AsyncStateMachineBox`1.MoveNext => ExecutionContext.RunInternal => d__165.MoveNext 2026-02-04 11:52:31.3440 Ocelot.Logging.AspDotNetLogger.LogError Error: requestId: 8000049a-000c-ec00-b63f-84710c7967bb, previousRequestId: no previous request id, message: Exception caught in global error handler, exception message: The remote party closed the WebSocket connection without completing the close handshake., exception stack: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context), inner exception message Cannot access a disposed object. Object name: 'MemoryPool'., inner exception stack at System.Buffers.MemoryPoolThrowHelper.ThrowObjectDisposedException(ExceptionArgument argument) at System.Buffers.SlabMemoryPool.Lease() at System.IO.Pipelines.Pipe.AllocateSegment(Int32 sizeHint) at System.IO.Pipelines.Pipe.AllocateWriteHeadSynchronized(Int32 sizeHint) at Microsoft.AspNetCore.Server.IIS.Core.OutputProducer.WriteAsync(ReadOnlyMemory`1 buffer, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.WriteAsync(ReadOnlyMemory`1 memory, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.HttpResponseStream.WriteAsync(ReadOnlyMemory`1 source, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.HttpUpgradeStream.WriteAsync(ReadOnlyMemory`1 source, CancellationToken cancellationToken) at System.Net.WebSockets.ManagedWebSocket.SendFrameFallbackAsync(MessageOpcode opcode, Boolean endOfMessage, ReadOnlyMemory`1 payloadBuffer, CancellationToken cancellationToken) RequestId: 8000049a-000c-ec00-b63f-84710c7967bb, exception: System.Net.WebSockets.WebSocketException (997): The remote party closed the WebSocket connection without completing the close handshake. ---> System.ObjectDisposedException: Cannot access a disposed object. Object name: 'MemoryPool'. at System.Buffers.MemoryPoolThrowHelper.ThrowObjectDisposedException(ExceptionArgument argument) at System.Buffers.SlabMemoryPool.Lease() at System.IO.Pipelines.Pipe.AllocateSegment(Int32 sizeHint) at System.IO.Pipelines.Pipe.AllocateWriteHeadSynchronized(Int32 sizeHint) at Microsoft.AspNetCore.Server.IIS.Core.OutputProducer.WriteAsync(ReadOnlyMemory`1 buffer, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.WriteAsync(ReadOnlyMemory`1 memory, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.HttpResponseStream.WriteAsync(ReadOnlyMemory`1 source, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.HttpUpgradeStream.WriteAsync(ReadOnlyMemory`1 source, CancellationToken cancellationToken) at System.Net.WebSockets.ManagedWebSocket.SendFrameFallbackAsync(MessageOpcode opcode, Boolean endOfMessage, ReadOnlyMemory`1 payloadBuffer, CancellationToken cancellationToken) at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) The remote party closed the WebSocket connection without completing the close handshake. at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) ExecutionContext.RunInternal => d__4.MoveNext => AspDotNetLogger.LogError 2026-02-04 11:52:31.3477 Panda.ApiGateway.ErrorHandlingMiddleware.HandleExceptionAsync Error: ErrorMsg:An error occurred while writing to logger(s). (Cannot access a disposed object. Object name: 'EventLogInternal'.); StackTrace: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.OcelotMiddlewareExtensions.<>c__DisplayClass5_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware.Invoke(HttpContext httpContext) at Panda.ApiGateway.ErrorHandlingMiddleware.InvokeAsync(HttpContext context) ExecutionContext.RunInternal => d__4.MoveNext => ErrorHandlingMiddleware.HandleExceptionAsync 2026-02-04 11:52:31.3477 Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext+Log.ApplicationError Error: Connection ID "17005592246101214361", Request ID "8000049a-000c-ec00-b63f-84710c7967bb": An unhandled exception was thrown by the application. Cannot access a disposed object. Object name: 'EventLogInternal'. at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at System.Diagnostics.EventLog.WriteEvent(EventInstance instance, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|12_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) d__2.MoveNext => IISHttpContext.ReportApplicationError => Log.ApplicationError 2026-02-04 11:52:31.3477 Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext+d__165.MoveNext Error: Unexpected exception in IISHttpContext.HandleRequest. Cannot access a disposed object. Object name: 'EventLogInternal'. at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at System.Diagnostics.EventLog.WriteEvent(EventInstance instance, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|12_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) AsyncStateMachineBox`1.MoveNext => ExecutionContext.RunInternal => d__165.MoveNext 2026-02-04 11:52:31.8835 Ocelot.Logging.AspDotNetLogger.LogError Error: requestId: 800056b1-0002-f500-b63f-84710c7967bb, previousRequestId: no previous request id, message: Exception caught in global error handler, exception message: The remote party closed the WebSocket connection without completing the close handshake., exception stack: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context), inner exception message Cannot access a disposed object. Object name: 'MemoryPool'., inner exception stack at System.Buffers.MemoryPoolThrowHelper.ThrowObjectDisposedException(ExceptionArgument argument) at System.Buffers.SlabMemoryPool.Lease() at System.IO.Pipelines.Pipe.AllocateSegment(Int32 sizeHint) at System.IO.Pipelines.Pipe.AllocateWriteHeadSynchronized(Int32 sizeHint) at Microsoft.AspNetCore.Server.IIS.Core.OutputProducer.WriteAsync(ReadOnlyMemory`1 buffer, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.WriteAsync(ReadOnlyMemory`1 memory, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.HttpResponseStream.WriteAsync(ReadOnlyMemory`1 source, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.HttpUpgradeStream.WriteAsync(ReadOnlyMemory`1 source, CancellationToken cancellationToken) at System.Net.WebSockets.ManagedWebSocket.SendFrameFallbackAsync(MessageOpcode opcode, Boolean endOfMessage, ReadOnlyMemory`1 payloadBuffer, CancellationToken cancellationToken) RequestId: 800056b1-0002-f500-b63f-84710c7967bb, exception: System.Net.WebSockets.WebSocketException (0x80004005): The remote party closed the WebSocket connection without completing the close handshake. ---> System.ObjectDisposedException: Cannot access a disposed object. Object name: 'MemoryPool'. at System.Buffers.MemoryPoolThrowHelper.ThrowObjectDisposedException(ExceptionArgument argument) at System.Buffers.SlabMemoryPool.Lease() at System.IO.Pipelines.Pipe.AllocateSegment(Int32 sizeHint) at System.IO.Pipelines.Pipe.AllocateWriteHeadSynchronized(Int32 sizeHint) at Microsoft.AspNetCore.Server.IIS.Core.OutputProducer.WriteAsync(ReadOnlyMemory`1 buffer, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.WriteAsync(ReadOnlyMemory`1 memory, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.HttpResponseStream.WriteAsync(ReadOnlyMemory`1 source, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.HttpUpgradeStream.WriteAsync(ReadOnlyMemory`1 source, CancellationToken cancellationToken) at System.Net.WebSockets.ManagedWebSocket.SendFrameFallbackAsync(MessageOpcode opcode, Boolean endOfMessage, ReadOnlyMemory`1 payloadBuffer, CancellationToken cancellationToken) at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) The remote party closed the WebSocket connection without completing the close handshake. at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) ExecutionContext.RunInternal => d__4.MoveNext => AspDotNetLogger.LogError 2026-02-04 11:52:31.8835 Panda.ApiGateway.ErrorHandlingMiddleware.HandleExceptionAsync Error: ErrorMsg:An error occurred while writing to logger(s). (Cannot access a disposed object. Object name: 'EventLogInternal'.); StackTrace: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.OcelotMiddlewareExtensions.<>c__DisplayClass5_0.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.MiddlewareAnalysis.AnalysisMiddleware.Invoke(HttpContext httpContext) at Panda.ApiGateway.ErrorHandlingMiddleware.InvokeAsync(HttpContext context) ExecutionContext.RunInternal => d__4.MoveNext => ErrorHandlingMiddleware.HandleExceptionAsync 2026-02-04 11:52:31.8835 Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext+Log.ApplicationError Error: Connection ID "17654110549492913840", Request ID "800056b1-0002-f500-b63f-84710c7967bb": An unhandled exception was thrown by the application. Cannot access a disposed object. Object name: 'EventLogInternal'. at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at System.Diagnostics.EventLog.WriteEvent(EventInstance instance, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|12_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) d__2.MoveNext => IISHttpContext.ReportApplicationError => Log.ApplicationError 2026-02-04 11:52:31.8945 Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext+d__165.MoveNext Error: Unexpected exception in IISHttpContext.HandleRequest. Cannot access a disposed object. Object name: 'EventLogInternal'. at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at System.Diagnostics.EventLog.WriteEvent(EventInstance instance, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|12_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) AsyncStateMachineBox`1.MoveNext => ExecutionContext.RunInternal => d__165.MoveNext 2026-02-04 20:57:31.5182 Ocelot.Logging.AspDotNetLogger.LogError Error: requestId: 8000449f-0000-f700-b63f-84710c7967bb, previousRequestId: no previous request id, message: Exception caught in global error handler, exception message: The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived', exception stack: at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) RequestId: 8000449f-0000-f700-b63f-84710c7967bb, exception: System.Net.WebSockets.WebSocketException (0x80004005): The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) The WebSocket is in an invalid state ('Aborted') for this operation. Valid states are: 'Open, CloseReceived' at Ocelot.Middleware.Pipeline.OcelotPipelineBuilderExtensions.<>c__DisplayClass5_2.<b__3>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Ocelot.Middleware.Pipeline.MapWhenMiddleware.Invoke(DownstreamContext context) at Ocelot.Errors.Middleware.ExceptionHandlerMiddleware.Invoke(DownstreamContext context) ExecutionContext.RunInternal => d__4.MoveNext => AspDotNetLogger.LogError