You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gRPC docs for error codes state that both client and server should use the unimplemented code for cardinality violations. See table at the bottom of this doc (you can search for “cardinality violation” in the doc): https://grpc.github.io/grpc/core/md_doc_statuscodes.html.
A cardinality violation is when a stream contains an incorrect number of messages. Specifically, when a response stream for a unary or client-stream RPC contains zero messages with an OK status or more than one message; or when a request stream for a unary or server-stream RPC contains zero or more than one messages.
The server in this repo conforms to the documented behavior, but the client does not.
For unary and client-stream RPCs, if no response messages are present in the response, only an “OK” status, the client reports an internal error (with a message of “No message received”) instead of unimplemented.
For unary and client-stream RPCs, if a second response message is erroneously sent by the server before the trailers/status, the operation appears to hang indefinitely (!!). A metadata event is triggered, but nothing else — no callback, no error event, no status event, and no end event.
The text was updated successfully, but these errors were encountered:
For the Java issue I mentioned this change to the spec was made without any real notification/discussion. So we may want to re-consider the spec in this case. grpc/grpc-java#11247 (comment)
The gRPC docs for error codes state that both client and server should use the
unimplemented
code for cardinality violations. See table at the bottom of this doc (you can search for “cardinality violation” in the doc): https://grpc.github.io/grpc/core/md_doc_statuscodes.html.A cardinality violation is when a stream contains an incorrect number of messages. Specifically, when a response stream for a unary or client-stream RPC contains zero messages with an OK status or more than one message; or when a request stream for a unary or server-stream RPC contains zero or more than one messages.
The server in this repo conforms to the documented behavior, but the client does not.
internal
error (with a message of “No message received”) instead ofunimplemented
.metadata
event is triggered, but nothing else — no callback, noerror
event, nostatus
event, and noend
event.The text was updated successfully, but these errors were encountered: