grpc-dotnet icon indicating copy to clipboard operation
grpc-dotnet copied to clipboard

The request stream was aborted:This situation happens occasionally, and I haven't found the reason

Open xiaofanI opened this issue 3 months ago • 0 comments

Hi. My client encountered an unexpected exception when connecting to the server, and the log is as follows Category: Grpc.AspNetCore.Server.ServerCallHandler EventId: 6 SpanId: 214f3bffb2c4ac8c TraceId: 7c50cbd7d5960ea1af633847ccfa72fa ParentId: 0000000000000000 ConnectionId: 0HN3F1KKKOFAC RequestId: 0HN3F1KKKOFAC:0000110B RequestPath: /AskTask.AskTask/GuidLoad Error when executing service method 'GuidLoad'. Exception: System.IO.IOException: The request stream was aborted. ---> Microsoft.AspNetCore.Connections.ConnectionAbortedException: The HTTP/2 connection faulted. --- End of inner exception stack trace --- at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result) at System.IO.Pipelines.Pipe.GetReadAsyncResult() at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2MessageBody.ReadAsync(CancellationToken cancellationToken) at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token) at Grpc.AspNetCore.Server.Internal.PipeExtensions.ReadSingleMessageAsync[T](PipeReader input, HttpContextServerCallContext serverCallContext, Func2 deserializer) at Grpc.AspNetCore.Server.Internal.CallHandlers.UnaryServerCallHandler3.HandleCallAsyncCore(HttpContext httpContext, HttpContextServerCallContext serverCallContext) at Grpc.AspNetCore.Server.Internal.CallHandlers.ServerCallHandlerBase3.<HandleCallAsync>g__AwaitHandleCall|8_0(HttpContextServerCallContext serverCallContext, Method2 method, Task handleCall)

xiaofanI avatar May 23 '24 07:05 xiaofanI