Skip to content

io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 1.999884080s. [closed=[], open=[[buffered_nanos=2001703685, waiting_for_connection]]] at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:262) #10365

Closed
@zzq0341

Description

@zzq0341

I encountered some problems with grpc-java, please help, thank you very much.
My version number is 1.45.4.
My code is as follows:

originChannel is an instance variable
ManagedChannel originChannel=NettyChannelBuilder.forAddress(XXXX, XXXX)
               .idleTimeout(2, TimeUnit.MINUTES)
               .usePlaintext()
               .build();

grpc remote call code is

XXService. newBlockingStub(originChannel)
               .withInterceptors(new ClientInterceptor[]{MetadataUtils.newAttachHeadersInterceptor(meta)})
               .withDeadlineAfter(2, TimeUnit. SECONDS)
               .xx(Empty.newBuilder().build());

I get some error messages and after 20 seconds it's fine again

o.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 1.999884080s. [closed=[], open=[[buffered_nanos=2001703685, waiting_for_connection]]]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions