gRPC exception list

3,122 views
Skip to first unread message

qplc

unread,
Oct 5, 2018, 2:39:18 AM10/5/18
to grpc.io
Hi,

Can anyone tell me where to look for all possible exceptions thrown by grpc server/client?

Maximum time I have seen below exception:
io.grpc.StatusRuntimeException: INTERNAL: HTTP/2 error code: INTERNAL_ERROR
Received Goaway

Above exception doesn't give clarity about what could have happened when it was being thrown.


Regards,
qplc

Mahesh Kanote

unread,
Oct 5, 2018, 5:46:31 AM10/5/18
to pooja....@games24x7.com, grpc.io

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/91c0edaf-a1c6-4a40-ac94-76d9810c0ee9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--


Thanks,
Mahesh

qplc

unread,
Oct 5, 2018, 8:17:43 AM10/5/18
to grpc.io
Thanks Mahesh.

Is there any document for more specific errors/exceptions? For example if I say error INTERNAL or UNKNOWN has occurred then at first stage where should I start to debug. This is happening due to lack of more detailed information on errors. And it is becoming difficult to drill down further.

qplc

unread,
Oct 5, 2018, 8:27:19 AM10/5/18
to grpc.io
One more exception I got in my application is as follows:

SEVERE [grpc-server-app-9] io.grpc.internal.SerializingExecutor.run Exception while executing runnable io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed@35683b78
 java.lang.IllegalStateException: call already closed
    at com.google.common.base.Preconditions.checkState(Preconditions.java:444)
    at io.grpc.internal.ServerCallImpl.close(ServerCallImpl.java:172)
    at io.grpc.stub.ServerCalls$ServerCallStreamObserverImpl.onCompleted(ServerCalls.java:358)
    at test.example.observer.TestObserver.onCompleted(TestObserver.java:67)
    at io.grpc.stub.ServerCalls$StreamingServerCallHandler$StreamingServerCallListener.onHalfClose(ServerCalls.java:259)
    at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.halfClosed(ServerCallImpl.java:283)
    at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1HalfClosed.runInContext(ServerImpl.java:707)
    at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
    at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
    at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1689)
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

Above exception was thrown while closing stream after successful completion of rpc at server side. But, how to debug for above behavior since the thrown exception isn't seen everytime on stream close action? What could have caused this issue?


On Friday, October 5, 2018 at 12:09:18 PM UTC+5:30, qplc wrote:

yas...@google.com

unread,
Oct 10, 2018, 1:55:18 PM10/10/18
to grpc.io
It looks like the server has sent an HTTP2 GOAWAY frame which means that the connection is being dropped for some reason. This may be due to the server shutting down or the clients sending too many pings. Just these two events come to mind right now, but there might be more.

Kun Zhang

unread,
Oct 12, 2018, 2:44:50 PM10/12/18
to grpc.io
Yes. The "Received Goaway" from the error message means the server has shut down the connection, possibly because you have shutdown the server.

The other IllegalStateException on the server side is probably a side-effect of you trying to close an RPC that has already been closed.
Reply all
Reply to author
Forward
0 new messages