Im trying to read the body (which works) but then it throws an exception
fail: Microsoft.AspNetCore.Server.Kestrel[13] Connection id "0HMSD270MT6R7", Request id "0HMSD270MT6R7:00000001": An unhandled exception was thrown by the application. Microsoft.AspNetCore.Connections.ConnectionAbortedException: The connection was aborted by the application. ---> System.InvalidOperationException: Reading is already in progress. at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Http1ContentLengthMessageBody.TryReadInternal(ReadResult& readResult) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Http1MessageBody.OnConsumeAsync() --- End of inner exception stack trace ---
fail: Microsoft.AspNetCore.Server.Kestrel[13] Connection id "0HMSD270MT6R7", Request id "0HMSD270MT6R7:00000001": An unhandled exception was thrown by the application. Microsoft.AspNetCore.Connections.ConnectionAbortedException: The connection was aborted by the application. ---> System.InvalidOperationException: Reading is already in progress. at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Http1ContentLengthMessageBody.TryReadInternal(ReadResult& readResult) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Http1MessageBody.OnConsumeAsync() --- End of inner exception stack trace ---
Description Under very specific conditions, SocketsHttpHandler.SendAsync when using HTTP/2 attempts to copy the HttpRequestMessage.Content twice. In Island Gateway (AKA what eventually became YARP)...