Exception after upgrading to Google.Cloud.Speech.V1 1.3.0
See original GitHub issueAfter upgrading from Google.Cloud.Speech.V1 1.2.0 to Google.Cloud.Speech.V1 1.3.0 our projects raises an exception
“Retry cannot be used in a bidirectional streaming method”.
Exception is thrown while creating recognition on method "StreamingRecognize:
GoogleCredential googleCredential = GoogleCredential.FromJson("....");
var channel = new Grpc.Core.Channel(SpeechClient.DefaultEndpoint.Host, googleCredential.ToChannelCredentials());
speech = SpeechClient.Create(channel);
streamingCall = speech.StreamingRecognize();
Full exception message: System.InvalidOperationException: Retry cannot be used in a bidirectional streaming method. at Google.Api.Gax.Grpc.ApiBidirectionalStreamingCall`2.Call(CallSettings perCallCallSettings) in T:\src\github\gax-dotnet\releasebuild\Google.Api.Gax.Grpc\ApiBidirectionalStreamingCall.cs:line 67 at Google.Cloud.Speech.V1.SpeechClientImpl.StreamingRecognize(CallSettings callSettings, BidirectionalStreamingSettings streamingSettings) in T:\src\github\google-cloud-dotnet\releasebuild\apis\Google.Cloud.Speech.V1\Google.Cloud.Speech.V1\SpeechClient.g.cs:line 728
Please help, we cant upgrade to this new API 😦
Issue Analytics
- State:
- Created 4 years ago
- Comments:10
Right, I’m glad you found the bug. I’m hoping to release 1.3.1 today with the retry settings removed so you don’t need to specify the settings.
This is now fixed in Google.Cloud.Speech.V1 version 1.3.1 - thanks again for reporting it.