Skip to content

Instantly share code, notes, and snippets.

@kshyju
Created January 22, 2024 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kshyju/28078faa59c71f46095f2484534c5371 to your computer and use it in GitHub Desktop.
Save kshyju/28078faa59c71f46095f2484534c5371 to your computer and use it in GitHub Desktop.
GRPC Exception when AOT published with EventPipe support
Minimal repro app

https://github.com/kshyju/DotnetAppLoader/tree/case_2-aot-e2e-fails

Exception

Grpc.Core.RpcException: Status(StatusCode="Unavailable", Detail="Error connecting to subchannel.", DebugException="System.Net.Sockets.SocketException: Unknown error (0xffffffff)") ---> System.Net.Sockets.SocketException (0xFFFFFFFF): Unknown error (0xffffffff) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError, CancellationToken) + 0x47 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16) + 0x4e at System.Net.Sockets.Socket.<g__WaitForConnectWithCancellation|285_0>d.MoveNext() + 0x18f --- End of stack trace from previous location --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb2 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task, ConfigureAwaitOptions) + 0x4b at Grpc.Net.Client.Balancer.Internal.SocketConnectivitySubchannelTransport.d__24.MoveNext() + 0x226 --- End of inner exception stack trace --- at Grpc.Net.Client.Internal.HttpContentClientStreamReader`2.d__18.MoveNext() + 0x6b6 --- End of stack trace from previous location --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb2 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task, ConfigureAwaitOptions) + 0x4b at FunctionsNetHost.Grpc.GrpcClient.d__4.MoveNext() + 0x10c --- End of stack trace from previous location --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb2 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task, ConfigureAwaitOptions) + 0x4b at FunctionsNetHost.Grpc.GrpcClient.d__3.MoveNext() + 0x225 --- End of stack trace from previous location --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb2 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task, ConfigureAwaitOptions) + 0x4b at Program.

d__0.MoveNext() + 0x126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment