C# GRPC 1.22.0版DNS解析失败
当我通过代理(也是PAC)为Google Speech Client创建频道时,DNS解析失败。这个问题只发生在我的客户端,但不会发生在我的公司代理中。您能为这个问题提供建议吗?我的客户需要什么信息才能做到这一点 我的环境信息如下C# GRPC 1.22.0版DNS解析失败,c#,wpf,grpc,google-speech-api,C#,Wpf,Grpc,Google Speech Api,当我通过代理(也是PAC)为Google Speech Client创建频道时,DNS解析失败。这个问题只发生在我的客户端,但不会发生在我的公司代理中。您能为这个问题提供建议吗?我的客户需要什么信息才能做到这一点 我的环境信息如下 var cred = GoogleAuthentication.GetServiceAccountCredential(GoogleSpeech.SpeechClient.DefaultScopes); ChannelCredentials channelCreden
var cred = GoogleAuthentication.GetServiceAccountCredential(GoogleSpeech.SpeechClient.DefaultScopes);
ChannelCredentials channelCredentials = cred.ToChannelCredentials();
Channel channel = new Channel(GoogleSpeech.SpeechClient.DefaultEndpoint.Host,GoogleSpeech.SpeechClient.DefaultEndpoint.Port, channelCredentials);
GoogleSpeechClient = GoogleSpeech.SpeechClient.Create(channel);
C#/net462 gRPC 1.22.0,Google.cloud.speech.v1 Windows 10
我的代码如下
var cred = GoogleAuthentication.GetServiceAccountCredential(GoogleSpeech.SpeechClient.DefaultScopes);
ChannelCredentials channelCredentials = cred.ToChannelCredentials();
Channel channel = new Channel(GoogleSpeech.SpeechClient.DefaultEndpoint.Host,GoogleSpeech.SpeechClient.DefaultEndpoint.Port, channelCredentials);
GoogleSpeechClient = GoogleSpeech.SpeechClient.Create(channel);
这是我的grpc调试日志
I0205 11:22:45.653978 0
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\ext\transport\chttp2\client\secure\secure\u channel\u create.cc:198:
grpc安全通道创建(creds=00000204FCF267F0,
target=speech.googleapis.com:443,args=00000204A2666570,
保留=0000000000000000)I0205 11:22:45.653978 0
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\ext\filters\client\u channel\client\u channel.cc:1184:
chand=00000 204FDDCC020:为通道堆栈创建客户端_通道
00000204FDDCBFA0 I0205 11:22:45.653978 0
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\ext\filters\client\u channel\client\u channel.cc:1087:
chand=00000204FDDCC020:更新:状态=空闲选择器=00000204A2666770
I0205 11:22:45.653978 0
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\ext\filters\client\u channel\client\u channel.cc:1259:
chand=00000 204FDDCC020:已创建解析策略=00000 2049E1046E0
I0205 11:22:45.655974 0
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\lib\surface\metadata\u array.cc:29:
grpc元数据数组初始化(数组=00000204A2666690)I0205 11:22:45.655974
0
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\lib\surface\call.cc:1922:
grpc调用启动批处理(调用=000002049E2DB960,操作=0000000 9C19FD620,
nops=2,tag=00000204A2557130,reserved=0000000000000000)I0205
11:22:45.655974 0
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\lib\surface\call.cc:1526:
ops[0]:发送\u初始\u元数据键=x-goog-api-client值=67 6c 2d 64
6f 74 6e 65 74 2f 34 2e 36 2e 32 20 67 63 6c 2f 31 2e 32 2e 30 20
67 61 70 69 63 2f 31 2e 32 2e 30 20 67 61 78 2f 32 2e 39 2e 30 20 67
72 70 63 2f 31 2e 32 32 2e 30’gl dotnet/4.6.2 gccl/1.2.0 gapic/1.2.0
gax/2.9.0 grpc/1.22.0'I0205 11:22:45.655974 0
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\lib\surface\call.cc:1526:
ops[1]:在客户端元数据上记录状态=00000204A2557190
状态=00000204A25571A8详细信息=00000204A25571B0 I0205 11:22:45.655974
0
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\ext\filters\client\u channel\client\u channel.cc:3499:
chand=00000 204FDDCC020调用d=00000 2049E2DC310:LB拾取返回队列
(已连接的_子通道=0000000000000000,错误=“无错误”)I0205
11:22:45.655974 0
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\ext\filters\client\u channel\client\u channel.cc:3373:
chand=00000 204FDDCC020调用d=00000 2049E2DC310:添加到排队拾取
列表I0205 11:22:45.655974 0
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\ext\filters\client\u channel\resolution\u lb\u policy.cc:283:
解析_lb=00000 2049E1046E0:开始名称解析I0205
11:22:45.655974 0
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\ext\filters\client\u channel\client\u channel.cc:1087:
chand=00000204FDDCC020:更新:状态=正在连接
选择器=00000204A2666AF0 D0205 11:22:45.655974 0
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\ext\filters\client\u channel\resolver\dns\native\dns\u resolver.cc:242:
开始解析。I0205 11:22:45.655974 0
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\ext\filters\client\u channel\client\u channel.cc:3499:
chand=00000 204FDDCC020调用d=00000 2049E2DC310:LB拾取返回队列
(已连接的_子通道=0000000000000000,错误=“无错误”)I0205
11:22:45.655974 0
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\lib\surface\call.cc:1922:
grpc调用启动批处理(调用=000002049E2DB960,操作=0000000 9C19FD680,
nops=1,标签=00000204A2557200,保留=0000000000000000)I0205
11:22:45.655974 0
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\lib\surface\call.cc:1526:
ops[0]:记录初始元数据ptr=00000204A2557238 I0205
11:22:45.657332 0
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\lib\surface\call.cc:1922:
grpc调用启动批处理(调用=000002049E2DB960,操作=0000000 9C19FDD20,
nops=1,tag=00000204A2556EC0,reserved=0000000000000000)I0205
11:22:45.657332 0
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\lib\surface\call.cc:1526:
ops[0]:发送消息ptr=00000204FDDE43D0 I0205 11:22:45.677333
2218856014768
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\ext\filters\client\u channel\resolver\dns\native\dns\u resolver.cc:185:
dns解析失败(将重试):
{“已创建”:“@1580869365.677000000”,“说明”:“操作系统”
错误,“文件”:“T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\lib\iomgr\resolve\u address\u windows.cc”,“文件行”:96,“操作系统错误”:“否”
这样的主机是已知的。\r\n,“系统调用”:“getaddrinfo”,“wsa_错误”:11001}
I0205 11:22:45.677333 2218856014768
T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\ext\filters\client\u channel\resolution\u lb\u policy.cc:299:
解析_lb=00000 2049E1046E0:解析程序瞬态故障:
{“已创建”:“@1580869365.677000000”,“说明”:“DNS解析”
“失败”,“文件”:“T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\ext\filters\client\u channel\resolver\dns\native\dns\u resolver.cc”,“文件行”:190,“grpc\u状态”:14,“引用的\u错误”:[{“已创建”:“@1580869365.677000000”,“说明”:“操作系统”
错误,“文件”:“T:\src\github\grpc\workspace\u csharp\u ext\u windows\u x64\src\core\lib\iomgr\resolve\u address\u windows.cc”,“文件行”:96,“操作系统错误”:“否”
这样的主机是已知的。\r\n,“系统调用”:“getaddrinfo”,“wsa_错误”:11001}]}
I0205 11:22:45.677333 2218856014768
T:\src\github\grpc\workspace\u csharp_