Grpc.Core.RpcException: Status(StatusCode="DeadlineExceeded", Detail="")

233 views
Skip to first unread message

余志健

unread,
Jul 19, 2023, 12:44:42 AM7/19/23
to grpc.io
this error always sometimes,when restart pod,it resoved
use grpc.client.factory version(2.55.0),code is 
services
            .AddGrpcClient<TClient>(factoryOptions =>
            {
                factoryOptions.Address = new uri("")
            })
            .ConfigureChannel(Channel);

Channel(IServiceProvider serviceProvider, GrpcChannelOptions channelOptions)
    {
        channelOptions.Credentials = ChannelCredentials.Insecure;
#if NET6_0_OR_GREATER
        channelOptions.ServiceConfig = new ServiceConfig
        {
            LoadBalancingConfigs =
            {
                new RoundRobinConfig()
            }
        };
        channelOptions.HttpHandler = new SocketsHttpHandler()
        {
            EnableMultipleHttp2Connections = true,
            SslOptions = new SslClientAuthenticationOptions
            {
                // Leave certs unvalidated for debugging
                RemoteCertificateValidationCallback = delegate { return true; }
            }
        };

fish d

unread,
Jul 19, 2023, 1:02:46 AM7/19/23
to grpc.io
Grpc.Core.RpcException: Status(StatusCode="DeadlineExceeded", Detail="")
   at Grpc.ClientLoggingInterceptor.HandleResponse[TRequest,TResponse](ClientInterceptorContext`2 context, Task`1 inner)
   at Grpc.DataCenter.DataCenterHeartBeatProvider.SendHeartBeatAsync()
   at Grpc.HostedServices.GrpcHeartBeatHostedService.ExecuteAsync(CancellationToken stoppingToken)    at Grpc.ClientLoggingInterceptor.HandleResponse[TRequest,TResponse](ClientInterceptorContext`2 context, Task`1 inner)
   at Grpc.Data.HeartBeatProvider.SendHeartBeatAsync()
   at Grpc.HostedServices.GrpcHeartBeatHostedService.ExecuteAsync(CancellationToken stoppingToken) System.Private.CoreLib

Jan Tattermusch

unread,
Aug 22, 2023, 4:20:42 AM8/22/23
to grpc.io
Sorry, there isn't enough context in your question to be able to help.
Reply all
Reply to author
Forward
0 new messages