Hi, I got random error when execute tests using external tool (Jenkins). It’s happening about 1 in 5 test executions.
Error message:
Invalid request!
UiPath.CoreIpc.RemoteException: Invalid request! at UiPath.Service.Orchestrator.OrchestratorClientExtensions.EnsureOrchestratorStatusCodeAsync(HttpResponseMessage response)
at UiPath.Service.Orchestrator.Clients.OrchestratorBaseClient.InternalRequestAsync[T](String serviceUrl, HttpMethod method, HttpContent content, Func`2 parseResponse, String baseUrl, TokenFactory tokenFactory, TimeSpan timeout, Dictionary`2 headers, CancellationToken ct)
at UiPath.Service.Orchestrator.Clients.OrchestratorBaseClient.RequestAsync(String serviceUrl, HttpMethod method, HttpContent content, String baseUrl, TokenFactory tokenFactory, TimeSpan timeout, Dictionary`2 headers, CancellationToken ct)
at UiPath.Service.Orchestrator.Clients.OrchestratorBaseClient.RequestAsync[T](String serviceUrl, HttpMethod method, HttpContent content, String baseUrl, TokenFactory tokenFactory, TimeSpan timeout, Dictionary`2 headers, CancellationToken ct)
at UiPath.Service.Orchestrator.Clients.OrchestratorClient.GetUserTokenAsync(String scope, Nullable`1 jobId, String userName, CancellationToken ct)
at UiPath.Service.Core.Orchestrator.Access.UnattendedTokenProvider.GenerateUserToken(String scope, CancellationToken ct)
at UiPath.Service.Core.Orchestrator.Access.UnattendedTokenProvider.GetAccessToken(String scope, Boolean refresh, CancellationToken ct)
at UiPath.CoreIpc.Server.<>c__DisplayClass7_3.<<-ctor>g__InvokeMethod|6>d.MoveNext()
--- End of stack trace from previous location ---
at UiPath.CoreIpc.Server.<>c__DisplayClass7_1.<<-ctor>g__HandleRequest|3>d.MoveNext()
--- End of stack trace from previous location ---
at UiPath.CoreIpc.Server.<>c__DisplayClass7_2.<<-ctor>b__5>d.MoveNext()
--- End of stack trace from previous location ---
at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List`1 cancellationTokens, Func`2 func, String message, Func`2 exceptionHandler)