grpc: Failed to deserialize response message.
What version of gRPC and what language are you using?
C#
What operating system (Linux, Windows,…) and version?
Windows 7 x64
What runtime / compiler are you using (e.g. python version or version of gcc)
.net 4.6
What did you do?
What did you expect to see?
normal return rpc
What did you see instead?
Grpc.Core.RpcException: Status(StatusCode=Internal, Detail="Failed to deserialize response message.")
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Grpc.Core.Internal.AsyncCall`2.UnaryCall(TRequest msg)
at Grpc.Core.DefaultCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method`2 method, String host, CallOptions options, TRequest request)
at Grpc.Core.Interceptors.InterceptingCallInvoker.<BlockingUnaryCall>b__3_0[TRequest,TResponse](TRequest req, ClientInterceptorContext`2 ctx)
at Grpc.Core.ClientBase.ClientBaseConfiguration.ClientBaseConfigurationInterceptor.BlockingUnaryCall[TRequest,TResponse](TRequest request, ClientInterceptorContext`2 context, BlockingUnaryCallContinuation`2 continuation)
at Grpc.Core.Interceptors.InterceptingCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method`2 method, String host, CallOptions options, TRequest request)
at v2rayN.Protos.Statistics.StatsService.StatsServiceClient.QueryStats(QueryStatsRequest request, CallOptions options)
at v2rayN.Protos.Statistics.StatsService.StatsServiceClient.QueryStats(QueryStatsRequest request, Metadata headers, Nullable`1 deadline, CancellationToken cancellationToken)
at v2rayN.Handler.StatisticsHandler.Run()
Anything else we should know about your project / environment?
in Windows 10 x64 .Net 4.6 everything was ok, but windows 7 x64 .Net 6.4 will raise an exception
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (5 by maintainers)
@kucint I created a separate issue about VS2022 https://github.com/grpc/grpc/issues/27244
Anyone seeing this issue in VS2022 preview 3 is being impacted by a VS bug. The bug is fixed in VS2022 preview 4.
See https://developercommunity.visualstudio.com/t/Unable-to-Debug-grpc-server-code-with-pr/1503691 for more info.
@AqlaSolutions the workaround posted there seems to do the trick. Thanks.