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
Calling cancel() on the ResponseStream returned by a streaming RPC throws an exception.
version: 2.0.0+1
Repro steps
Don't have separate code for this right now, but could prepare something if required.
Call a server-side streaming RPC
Receive messages
Call cancel() on the ResponseStream
Expected result: The connection is closed is closed and I can handle any possible exceptions.
Actual result: The code will throw two exceptions, only one of which I can catch.
Details
I can see why adding an error to the stream when calling cancel() might be useful, but somewhere in the code it tries to add another error to one of the internal streams after that one was closed, which triggers the bad state exception seen below.
Calling
cancel()
on theResponseStream
returned by a streaming RPC throws an exception.version: 2.0.0+1
Repro steps
Don't have separate code for this right now, but could prepare something if required.
cancel()
on theResponseStream
Expected result: The connection is closed is closed and I can handle any possible exceptions.
Actual result: The code will throw two exceptions, only one of which I can catch.
Details
I can see why adding an error to the stream when calling
cancel()
might be useful, but somewhere in the code it tries to add another error to one of the internal streams after that one was closed, which triggers the bad state exception seen below.Potentially related: #111
The text was updated successfully, but these errors were encountered: