Fail streaming rpc from client #1302
Unanswered
MixusMinimax
asked this question in
Q&A
Replies: 2 comments
-
gRPC does not support fail-liable client streams so it doesn't accept Status on purpose. You would need to encode what ever failure mode into your protobuf message. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Is the same valid for cancellation from server side? #1590 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In grpc, calls can send Status errors in both directions.
I have this code:
It would be nice if I could use
try_stream
, but that does not work, sinceRequest
wants a stream that always returns requests directly.I have sadly not found any information on it, since the examples don't ever do something like this.
Once the stream closes, the server could still be doing something, and should be notified by sending an error
Beta Was this translation helpful? Give feedback.
All reactions