在公司网络中通过防火墙解锁以访问 Google Translate API高级版需要哪些 url?

问题描述

在公司网络中通过防火墙解除阻止以访问 Google Translate API(高级版)需要哪些 url?

目前未阻止的是: *.googleapis.com 和 accounts.google.com

但我仍然收到以下错误 System.Reflection.TargetInvocationException:调用的目标已抛出异常。 ---> Grpc.Core.RpcException: Status(StatusCode="Unavailable",Detail="无法连接到所有地址",DebugException="Grpc.Core.Internal.CoreErrorDetailException: { created":"@1612337108.132000000","description":"选择子频道失败","file":"T:\src\github\grpc\workspace_csharp_ext_windows_x64\src\core\ext\filters\client_channel\client_channel.cc","file_line":4090,"referenced_errors":[{ "创建":"@1612337108.132000000","description":"无法连接到所有地址","file":"T:\ src\github\grpc\workspace_csharp_ext_windows_x64\src\core\ext\filters\client_channel\lb_policy\pick_first\pick_first.cc","file_line":394,"grpc_status":14} ]} ") at System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Grpc.Core.Internal.AsyncCall2.UnaryCall(TRequest msg) at Grpc.Core.DefaultCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method2 方法,字符串主机,CallOptions 选项,TRequest 请求)在 Grpc.Core.Interceptors.InterceptingCallInvoker.b_ _3_0[TRequest,TResponse](TRequest req,ClientInterceptorContext2 ctx) at Grpc.Core.ClientBase.ClientBaseConfiguration.ClientBaseConfigurationInterceptor.BlockingUnaryCall[TRequest,TResponse](TRequest request,ClientInterceptorContext2 context,BlockingUnaryCallContinuation2 continuation) at Grpc.Core.Interceptors.InterceptingCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method2 method,String host,CallOptions options,TRequest request) at Google.Cloud.Translate.V3.TranslationService.TranslationServiceClient。 TranslateText(TranslateTextRequest request,CallOptions options) at Google.Api.Gax.Grpc.ApiCall.GrpcCallAdapter2.CallSync(TRequest request,CallSettings callSettings) at Google.Api.Gax.Grpc.ApiCallRetryExtensions.<>c__displayClass1_02.b__0(TRequest request,CallSettings callSettings) at ABG.Foundation.LanguageTranslator.GoogleTranslator.TranslateData(String sourceLanguage,String targetLanguage,List1 content) in D:\a\1\s\src\Foundation\LanguageTranslator\code\GoogleTranslator\GoogleTranslator.cs:line 106 at ABG.Foundation.LanguageTranslator.GoogleTranslator.TranslateData(List1 items,String sourceLanguage,String targetLanguage) in ...

注意:相同的代码和设置在公司网络之外也能正常工作。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)