When I get the CANCELLED with "HTTP/2 error code: CANCEL" on server-side streaming?

5,730 views
Skip to first unread message

Jaeyong Cho

unread,
Dec 28, 2016, 8:40:29 PM12/28/16
to grpc.io
Hi!

I've got the CANCELLED(description: HTTP/2 error code: CANCEL) when the client is receiving messages from server. And this is intermittent error.
It never occurred when just one-to-one server-to-client-streaming. This happens only when multiple servers and clients are server-to-client-streaming at the same time.

To fix the problem, I have the following questions:
- Could tell us which part you suspect? 
- Could you explain the description of error(HTTP/2 error code: CANCEL)? 

Client: grpc-java 
Server: grpc msvc c++
grpcVersion: 1.0.0
protobufVersion: 3.0.2

Please advise. Thanks.

Joe

Carl Mastrangelo

unread,
Jan 3, 2017, 7:25:38 PM1/3/17
to grpc.io
Cancelled can happen in a number of cases described here: https://github.com/grpc/grpc/blob/master/doc/statuscodes.md

Usually we only use cancel when an endpoint actually did cancel the request.  Can you provide more detail about what you are doing?

zon...@gmail.com

unread,
Apr 15, 2020, 2:42:05 AM4/15/20
to grpc.io
Sometimes happens when calling stream reaches a timeout and gets closed. Can be a sign of low performance due to insufficient memory or CPU available. 
Reply all
Reply to author
Forward
0 new messages