[grpc-io] Re: gRPC occasionally appears abnormal

2021-06-14 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 上午11:34:46<李

[grpc-io] Re: gRPC occasionally appears abnormal

2021-06-14 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 上午11:34:46<李灵韬

[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) a

[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: > UNAVAILABLE:

[grpc-io] gRPC occasionally appears abnormal

2021-06-14 Thread 李灵韬
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: UNAVAILABLE: io exception at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFutu

Re: [grpc-io] Re: Storing Proto Files in a Separate Directory

2021-06-14 Thread Amit Saha
On Mon, Jun 14, 2021 at 10:16 PM Nicholas Bunn wrote: > > I suppose another method to separating the generated proto files from the > server would be to generate the proto files directly into the relevant > service directory. So serviceOne.proto would still live in the serviceOne > directory, a

[grpc-io] Re: Storing Proto Files in a Separate Directory

2021-06-14 Thread Nicholas Bunn
I suppose another method to separating the generated proto files from the server would be to generate the proto files directly into the relevant service directory. So serviceOne.proto would still live in the serviceOne directory, along with the generated Python files as these will be used by th

[grpc-io] Storing Proto Files in a Separate Directory

2021-06-14 Thread Nicholas Bunn
Hi everyone, Up until now I've been structuring my project by containing a services' proto files in the same folder as the service itself, as below: - serviceOne - serviceOne.py - protos - serviceOne.proto - serviceOne_pb2.py - serviceOne_pb2_grpc.py - serv

[grpc-io] gRPC SaaS Documentation Generator

2021-06-14 Thread Bartłomiej Najdecki
Hello grpc.io! Today we are launching the first interactive documentation generator for gRPC and gRPC Web. Our platform reads the proto definition of the API and generates the interactive documentation and SDK for multiple technologies. You can integrate with API by *just installing the SDK