Azure Ошибка установки конфигурации агента Ошибка WinHttp: ERROR_WINHTTP_TIMEOUT - PullRequest
0 голосов
/ 23 апреля 2020

Получение сообщения об ошибке WinHttp: ERROR_WINHTTP_TIMEOUT при запуске config.cmd в корпоративной сети через VPN. На прошлой неделе это работало нормально, но на этой неделе перестало работать. Журнал ошибок здесь

2020-04-22 22:33:37Z ERR  VisualStudioServices] Attempt 4 of GET request to https://dev.azure.com/XYZ/_apis/connectionData?connectOptions=1&lastChangeId=143163415&lastChangeId64=143163415 failed (WinHttp Error: ERROR_WINHTTP_TIMEOUT). The maximum number of attempts has been reached.
[2020-04-22 22:33:37Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2020-04-22 22:33:37Z INFO LocationServer] Catch exception during connect. 4 attempt left.
[2020-04-22 22:33:37Z ERR  LocationServer] System.Net.Http.HttpRequestException: An error occurred while sending the request.
 ---> System.Net.Http.WinHttpException (80072EE2, 12002): Error 12002 calling WINHTTP_CALLBACK_STATUS_REQUEST_ERROR, 'The operation timed out'.
   at System.Threading.Tasks.RendezvousAwaitable`1.GetResult()
   at System.Net.Http.WinHttpHandler.StartRequestAsync(WinHttpRequestState state)
   --- End of inner exception stack trace ---
   at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.GetConnectionDataAsync(ConnectOptions connectOptions, Int64 lastChangeId, CancellationToken cancellationToken, Object userState)
   at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetConnectionDataAsync(ConnectOptions connectOptions, Int32 lastChangeId, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.ConnectAsync(ConnectOptions connectOptions, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Agent.LocationServer.ConnectAsync(VssConnection jobConnection)
[20

URL-адрес GET https://dev.azure.com/XYZ/_apis/connectionData?connectOptions=1&lastChangeId=143163415&lastChangeId64=143163415 доступен, и при запуске в окне powershell код ответа 200

StatusCode        : 200
StatusDescription : OK
Content           : {"authenticatedUser":{"id":"aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa","descriptor":"System:PublicAccess
                    ;aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa","providerDisplayName":"Anonymous","customDisplayName":"Anony
                    mo...
RawContent        : HTTP/1.1 200 OK
                    Pragma: no-cache
                    X-TFS-ProcessId: 2efc9e7a-2854-44d7-ada0-44a58e152504
                    Strict-Transport-Security: max-age=31536000; includeSubDomains
                    ActivityId: 4779c83e-93f6-4107-82fb-ca02c50d4d...
Forms             : {}
Headers           : {[Pragma, no-cache], [X-TFS-ProcessId, 2efc9e7a-2854-44d7-ada0-44a58e152504],
                    [Strict-Transport-Security, max-age=31536000; includeSubDomains], [ActivityId,
                    4779c83e-93f6-4107-82fb-ca02c50d4d78]...}
Images            : {}
InputFields       : {}
Links             : {}
ParsedHtml        : mshtml.HTMLDocumentClass
RawContentLength  : 368893 

Попытка установить прокси, но возникла та же проблема. Любые рекомендации приветствуются

...