Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not catching errors #39

Open
ianomad opened this issue Jun 28, 2019 · 2 comments
Open

Not catching errors #39

ianomad opened this issue Jun 28, 2019 · 2 comments

Comments

@ianomad
Copy link

ianomad commented Jun 28, 2019

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

@saturnism
Copy link
Owner

@ianomad which example are you looking at? thnx

@ianomad
Copy link
Author

ianomad commented Aug 24, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants