我们正在尝试实现GRPC代理服务器( ASP.NET核心控制台应用程序),它将代理传入的数据到谷歌语音流应用程序接口。代码与sample application中的代码基本相同。
代理服务器的用途是多语言识别和api密钥保护。
出于测试目的,我创建了Windows forms应用程序,它将可用数据(通过DataAvailable处理程序的音频块)发送到代理服务器。服务器开始识别抄本,但在几次识别之后(大约5-10次),它不再响应。实际上,每次从客户端到代理服务器的调用都会超时(截止日期)。
在客户机上,我接收到下一个异常:
Grpc.Core.RpcException: Status(StatusCode=DeadlineExceeded, Detail="Deadline Exceeded")
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Grpc.Core.Internal.AsyncCall`2.UnaryCall(TRequest msg)
at Grpc.Core.Calls.BlockingUnaryCall[TRequest,TResponse](CallInvocationDetails`2 call, TRequest req)
at Grpc.Core.DefaultCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method`2 method, String host, CallOptions options, TRequest request)
at Grpc.Core.Internal.InterceptingCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method`2 method, String host, CallOptions options, TRequest request)EDIT1 :服务器在此行停止。因此,客户端会收到截止日期异常。

发布于 2017-08-16 19:27:31
https://stackoverflow.com/questions/45484096
复制相似问题