@loginerror Dou you have a solution? I have the same problem. I can checkout with tortoise git but directly with the newest studio version this is not working
Hi @Stephu
Would you mind providing us a clear path to reproduce this issue?
Including the full Studio version and any relevant logs you might have
The behavior is a bit strange:
- In the case I use tortoise git I can clone all repository
- In the case I’m out of our company network it is running also
- The problem is only in the case we try to clone a repository directly inside uipath studio in the case I’m connected inside our company network. Is there a way to set a proxy only for libgit2sharp.
Error (same as creator of this issue):
ERROR] [UiPath.Studio.exe] [1] GIT: UiPath.Studio.Contracts.RecoverableException: Klonen vom angegebenen Repository nicht möglich. Stellen Sie sicher, dass das Remote-Objekt verfügbar ist, und versuchen Sie es noch einmal. —> LibGit2Sharp.LibGit2SharpException: failed to send request: Das Zeitlimit für den Vorgang wurde erreicht.
Is there a way to set a proxy only for libgit2sharp
That’s exactly the problem i am facing at the moment. UiPath doesn’t import global proxy settings in $HOME/.gitconfig so it can neither push nor clone. I can do it from CLI just fine.
Here are the logs:
09:39:45.9438 => [ERROR] [UiPath.Studio.exe] [1] Error: LibGit2Sharp.LibGit2SharpException: failed to send request: The operation timed out
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
at LibGit2Sharp.Core.Proxy.git_remote_push(RemoteHandle remote, IEnumerable`1 refSpecs, GitPushOptions opts)
at LibGit2Sharp.Network.Push(Remote remote, IEnumerable`1 pushRefSpecs, PushOptions pushOptions)
at LibGit2Sharp.Network.Push(Remote remote, String pushRefSpec, PushOptions pushOptions)
at UiPath.Studio.Plugin.Git.Services.Core.PushService.<>c__DisplayClass2_0.<Push>b__0()
at UiPath.Studio.Plugin.Git.Services.UI.UiAuthenticationSession.Execute[T](Func`1 action)
at UiPath.Studio.Plugin.Git.Services.Core.PushService.Push(IRepository repository, Remote remote, Boolean forcePush)
at UiPath.Studio.Plugin.Git.Services.UI.PushUiService.PushInternal(IRepository repository, Remote remote, Boolean forcePush)
at UiPath.Studio.Plugin.Git.Services.UI.PushUiService.<>c__DisplayClass18_0.<PushAsync>b__3(IRepository r)
at UiPath.Studio.Plugin.Git.Services.Core.GitSession.ThreadSafeExecute[TResult](Func`2 action)
at UiPath.Studio.Plugin.Git.Services.Core.GitSession.<>c__DisplayClass14_0`1.<ExecuteAsync>b__0(CancellationToken _)
at UiPath.Shared.ProducerConsumerPair.<>c__DisplayClass18_0`1.<StartNew>b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Plugin.Git.Services.Core.GitSession.<ExecuteAsync>d__14`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at UiPath.Studio.Plugin.Git.Services.UI.PushUiService.<PushAsync>d__18.MoveNext(), HResult -2146233088
Hi everyone, thank you for pointing this issue out! We have raised a defect for it and our team is already looking into it. For the moment, however, we are unable to provide a workaround. We will keep you posted once the fix is included in Studio.
We are tired up with this error. Everytime we are cloning Azure GIT repository from UIPATH studio same error giving. Any solution for this??
“Unable to clone from the given repository. Please make sure that the remote is available and try again.”
GIT: UiPath.Studio.Contracts.RecoverableException: Unable to clone from the given repository. Please make sure that the remote is available and try again. —> LibGit2Sharp.InvalidSpecificationException: malformed URL ‘https://rajputankit26@dev.azure.com/rajputankit26/Azure Test/_git/Azure Test’
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
at LibGit2Sharp.Core.Proxy.git_clone(String url, String workdir, GitCloneOptions& opts)
at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options)
at UiPath.Studio.Plugin.Git.Wrappers.RepositoryInit.Clone(String sourceUrl, String workdirPath, CloneOptions options)
at UiPath.Studio.Plugin.Git.Services.Core.CloneService.<>c__DisplayClass3_0.b__0()
at UiPath.Studio.Plugin.Git.Services.UI.UiAuthenticationSession.Execute[T](Func1 action) at UiPath.Studio.Plugin.Git.Services.Core.CloneService.CheckoutCore(String uri, String localFolder, IAuthenticationSession authenticationSession) --- End of inner exception stack trace --- at UiPath.Studio.Plugin.Git.Services.Core.CloneService.CheckoutCore(String uri, String localFolder, IAuthenticationSession authenticationSession) at UiPath.Studio.Plugin.Git.Services.Core.CloneService.<>c__DisplayClass2_0.<Checkout>b__0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Plugin.Git.Services.Core.CloneService.<Checkout>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Plugin.Git.Services.UI.CheckOutUiService.<CheckOut_ExecuteInternal>d__16.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.SourceControl.Shared.Services.UI.BaseCheckOutUiService
1.<CheckOut_Execute>d__25.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.SourceControl.Shared.Services.UI.BaseCheckOutUiService1.<<get_CheckOutCommand>b__11_0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Shared.MVVM.Commands.TaskCommand
3.d__32.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146233088
Hi Ankit, your Git URL has a space in it. Rename to have no spaces - UiPath Studio for some unknown reason fails to recognise spaces.
This is indicated in the exception message: “InvalidSpecificationException: malformed URL”
Our problem is that we can not connect to the remote repository. Doing clone, pull and push are therefor impossible. When we try to connect to the remote repo we have an Authentication Failed exception.
Our environment is as follows; UiPath Community Edition 2019.11.0-2 (we also have 2019.4.4 enterprise edition). Remote repo is Microsoft DevOps. We also have Microsoft Visual Studio. In Visual Studio we can connect to the remote repo with same credentials and do puls, push and so on. So access rights should not be the problem. The local repo (C:\Robot) also has the same name as the remote repo. Checking in/out from the local repo works fine. We are not using SSH.
Questions remains; why cant we do clone/push/pull from UiPath studio?
Hi @Laan, do you have 2-factor authentication enabled on the AzureDevOps server? If so, we do not support yet this type of authentication for Git, but it is on the roadmap for future releases. (documentation here: Managing Projects with GIT)
As a workaround for this, you can generate a personal access token and perform Git actions.
[quote=“Laan, post:29, topic:129228”]
m
[/quote] Can you please let us know how we can get a communication once this update is available @coramia
Hi @rahulraj987, you will find this information in the Release Notes. So our suggestion is to keep an eye on them!