grpc-by-example-java icon indicating copy to clipboard operation
grpc-by-example-java copied to clipboard

Not catching errors

Open ianomad opened this issue 5 years ago • 2 comments

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 avatar Jun 28 '19 06:06 ianomad

@ianomad which example are you looking at? thnx

saturnism avatar Aug 24 '19 21:08 saturnism

@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.

ianomad avatar Aug 24 '19 21:08 ianomad