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
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
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
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)
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:
>