How to resolve "The request was canceled due to the configured HttpClient.Timeout of 30 seconds elapsing."

Hi i am looking for the assistance to fix the below issue:
My Computer is joined AD + connected to internet through a proxy server.
My browser can connect to cloud.uipath.com. I configured in uipath.config but Uipath Studio still can not sign in.
I recieved an error:
UiPath.Service.UserHost 22.4.1.0
System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 30 seconds elapsing.
—> System.TimeoutException: A task was canceled.
—> System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Threading.Tasks.TaskCompletionSourceWithCancellation1.WaitWithCancellationAsync(CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at UiPath.Service.Api.BearerTokenHandler.<>c_DisplayClass3_0.<<SendAsync>g_SendRequest|0>d.MoveNext() --- End of stack trace from previous location --- at UiPath.Service.Api.BearerTokenHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) --- End of inner exception stack trace --- --- End of inner exception stack trace --- at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at UiPath.Service.UserHost.CloudConnectFlow.TryOpenFlow(HttpClient client, Uri serviceUrl, CancellationToken ct) at UiPath.Service.UserHost.InteractiveConnectFlow.<>c_DisplayClass12_0.<<SignInCore>b_0>d.MoveNext() --- End of stack trace from previous location --- at UiPath.Service.HttpExceptions.Improve[T](Func1 code)
at UiPath.Service.UserHost.InteractiveConnectFlow.SignIn(SignInParameters parameters, CancellationToken ct), HResult -2146233029
Please help me to fix this

(post deleted by author)

content in C:\Program Files\UiPath\Studio\uipath.config

Hello @Christine_Giang

Does that mean you are not able to signin from the uipath studio? Or you are not able to connect the Uipath assistant with the orchestrator?

Yes, i got stopped at this step

@Christine_Giang

Please refer to the below post.

I read this post, it can’t help me to fix.
I also read this post:
A Task Was Canceled - KB - News / Knowledge Base - UiPath Community Forum
I think that proxy configuration is problem. Because when i use wifi to sign in, it works fine.
I don’t know what i have to do after i edit file uipath.config to sign in url.

@Christine_Giang So I think in your office network they will have to whitelist the URL.

1 Like

I checked configuration of proxy that doesn’t block the URL. Proof that I can connect with browser Micosoft Edge

@Rahul_Unnikrishnan Did i config uipath.config rightly? :cry: :cry: :cry:

@Christine_Giang

Hope you are using the community version. Please check the urls mentioned in the below post. Those firewall settings you need to do. Also with office network is this cloud.uipath.com restricted. I think it should have blocked by the organization and you need to whitelist it.

Please check the post.

@Rahul_Unnikrishnan
Yes, I’m using the community version.
I must follow the policy that outgoing connections to the internet must go through a proxy. So that i can’t open redirect connection on firewall.
One more case, there are computers that have the proxy configuration applied and sign in, but there are also computers that are not applied. This is the problem that gives me a headache.