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
{{ message }}
Repository navigation
_Rendezvous of RPC that terminated with (StatusCode.CANCELLED, Cancelled!) #736
It works fine (I get transcript of my speech) until I press Ctrl+C. When I press Ctrl+C I get the following error:
^CTraceback (most recent call last):
File "transcribe_streaming.py", line 234, in
main()
File "transcribe_streaming.py", line 225, in main
listen_print_loop(recognize_stream)
File "transcribe_streaming.py", line 172, in listen_print_loop
for resp in recognize_stream:
File "/usr/local/lib/python2.7/dist-packages/grpc/_channel.py", line 344, in next
return self._next()
File "/usr/local/lib/python2.7/dist-packages/grpc/_channel.py", line 335, in _next
raise self
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.CANCELLED, Cancelled!)>
I believe that this error shouldn't be happening because of (in the main() try section):
except face.CancellationError:
# This happens because of the interrupt handler
pass
So my question is what is the right way to stop transcribing? If I just do recognize_stream.cancel() I get these _Rendezvous StatusCode.CANCELLED errors even though there is except face.CancellationError exception handler. Is this a bug or I'm doing something wrong?
Activity
jerjou commentedon Dec 21, 2016
Yeah - I just saw this too. I believe the library got updated and now the exception that's being thrown is different... fix forthcoming...
vladanostojic commentedon Dec 21, 2016
Ok, thanks!