Re: [grpc-io] Re: gRPC occasionally appears abnormal

2021-06-15 Thread 'Lidi Zheng' via grpc.io
Hi, UNAVAILABLE is one of the gRPC status codes, like 503 in HTTP status code. You can read more about the gRPC status code at https://github.com/grpc/grpc/blob/master/doc/statuscodes.md. What you are experiencing could have many different causes. I would recommend tuning up the Java client's

[grpc-io] Re: gRPC occasionally appears abnormal

2021-06-15 Thread 李灵韬
I changed my code ManagedChannelBuilder.forAddress("localhost", port).usePlaintext().build(); to ManagedChannelBuilder.forAddress("localhost", port).forAddress("127.0.0.1", port).usePlaintext().build(); , this seems to succeed, no errors occurred, very strange 在2021年6月15日星期二 UTC+8

[grpc-io] Re: gRPC occasionally appears abnormal

2021-06-15 Thread 李灵韬
I changed my code ManagedChannelBuilder.forAddress("localhost", port).usePlaintext().build(); to ManagedChannelBuilder.forAddress("localhost", port).forAddress("127.0.0.1", port).usePlaintext().build();, this seems to succeed, no errors occurred, very strange 在2021年6月15日星期二 UTC+8

[grpc-io] Re: gRPC occasionally appears abnormal

2021-06-14 Thread 李灵韬
Caused by: io.grpc.netty.shaded.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /127.0.0.1:50051 Caused by: java.net.ConnectException: Connection refused: no further information at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)

[grpc-io] Re: gRPC occasionally appears abnormal

2021-06-14 Thread 李灵韬
Do I need to provide more information? 在2021年6月15日星期二 UTC+8 上午10:45:28<李灵韬> 写道: > I recently added grpc to my app, but it occasionally reports errors, which > cannot be reproduced stably. > Console output: > java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: >