分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > IT知识

gRPC的.netClient客户端第一次连接出现StatusCode=Unavailable的解决办法?

发布时间:2023-09-06 02:21责任编辑:蔡小小关键词:暂无标签

1.问题还原:

The service does not automatically connect, free after a period of time, the first call will appear the following error, next to normal.

The program is based on.Net Framework, The Grpc.Core version is 1.4.1.

Grpc.Core.RpcException: Status(StatusCode=Unavailable, Detail="Endpoint read failed") ??在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) ??在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) ??在 Grpc.Core.Internal.AsyncCall`2.UnaryCall(TRequest msg) ??在 Grpc.Core.Calls.BlockingUnaryCall[TRequest,TResponse](CallInvocationDetails`2 call, TRequest req) ??在 Grpc.Core.DefaultCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method`2 method, String host, CallOptions options, TRequest request) ??在 Grpc.Core.Internal.InterceptingCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method`2 method, String host, CallOptions options, TRequest request)

The document says I can try again. Isn‘t this supposed to be implemented internally in grpc.core?

使用新版本试试:This issue looks stale and it is not clear what the intent was. Also 1.4.1 is pretty old, feel free to try with 1.12.0 and if you are still seeing a problem, file this as a new issue.

 

gRPC的.netClient客户端第一次连接出现StatusCode=Unavailable的解决办法?

原文地址:https://www.cnblogs.com/x-poior/p/9929985.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved