grpc-by-example-java
grpc-by-example-java copied to clipboard
Not catching errors
Used this example and not having basic runtime exceptions being caught. Is this example up to date? It triggers:
-
com.ea.eadp.social.connections.UnknownStatusInterceptor#interceptCall
-
io.grpc.ForwardingServerCall.SimpleForwardingServerCall#delegate
But it doesn't trigger either of:
-
io.grpc.ForwardingServerCall.SimpleForwardingServerCall#close
-
io.grpc.ForwardingServerCall.SimpleForwardingServerCall#sendMessage
I can see below logs:
ERROR [2019-06-28 06:21:26,636] io.grpc.internal.SerializingExecutor: Exception while executing runnable io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed@4035faba
It seems to be getting halfclosed
@ianomad which example are you looking at? thnx
@saturnism my bad. here you go: https://github.com/saturnism/grpc-java-by-example/tree/master/error-handling-example
to give you some context, i would like to catch all server errors in an interceptor to manage the grpc message and grpc status code.