Hi everyone,
I’m struggling with GitLab integration and don’t know why it throws an error, maybe someone in here has been where I am right now.
So… I’ve tried to push a project to GitLab but I am unable to do that.
I realised that I had tried to push to a protected branch (master). Then, I tried with another branch and it worked, so I could push through Git Bash (I created a branch, I commited and pushed successfully). I thought the problem was that I had tried with master branch (protected) instead of another branch, but when I tried to do the exact same thing that I did with Git Bash, but with UiPath, it throws me the same error as the first time I tried to push to master ( find attached a screenshot of the error and the description down below):
I can’t find a solution to this error. I’ve tried with two VMs, I’ve tried with Git Bash and UiPath. It worked with Git Bash, but nothing worked with UiPath. I tried creating a new branch on a local project and push to Git, but none of it worked.
Do you know what else can I try? Anything?
Thank you in advance everyone. Find below the description of the error UiPath throws:
23.10.7+Branch.support-v23.10.Sha.02c40641e96e0fb2b02b5704bda2b5572df87464
Unable to push to configured remote.
Error: LibGit2Sharp.LibGit2SharpException: failed to convert string to wide form: El parámetro no es correcto.
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in C:\work\uipathgit\libgit2sharp\LibGit2Sharp\Core\Ensure.cs:line 156
at LibGit2Sharp.Core.Proxy.git_remote_push(RemoteHandle remote, IEnumerable1 refSpecs, GitPushOptions opts) in C:\work\uipathgit\libgit2sharp\LibGit2Sharp\Core\Proxy.cs:line 2238 at LibGit2Sharp.Network.Push(Remote remote, IEnumerable
1 pushRefSpecs, PushOptions pushOptions) in C:\work\uipathgit\libgit2sharp\LibGit2Sharp\Network.cs:line 372
at LibGit2Sharp.Network.Push(Remote remote, String pushRefSpec, PushOptions pushOptions) in C:\work\uipathgit\libgit2sharp\LibGit2Sharp\Network.cs:line 331
at UiPath.Studio.Plugin.Git.Services.PushService.<>c__DisplayClass2_0.b__0()
at UiPath.Studio.Plugin.Git.Desktop.Services.UiAuthenticationSession.Execute[T](ExecuteArgs1 args) at UiPath.Studio.Plugin.Git.Services.PushService.Push(IRepository repository, RemoteModel remote, Boolean forcePush) at UiPath.Studio.Plugin.Git.Desktop.Services.PushUiService.PushInternal(IRepository repository, RemoteModel remote, Boolean forcePush) at UiPath.Studio.Plugin.Git.Desktop.Services.PushUiService.<>c__DisplayClass17_0.<PushAsync>b__3(IRepository r) at UiPath.Studio.Plugin.Git.Services.GitSession.ExecuteInternal[TResult](Func
2 action, Func1 repoFactory) at UiPath.Studio.Plugin.Git.Services.GitSession.<>c__DisplayClass18_0
1.b__1()
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at UiPath.Studio.Plugin.Git.Services.GitSession.SafeExecuteAsync[TResult](Func
1 action)
at UiPath.Studio.Plugin.Git.Services.GitSession.ExecuteAsync[TResult](Func`2 action)
at UiPath.Studio.Plugin.Git.Desktop.Services.PushUiService.PushAsync(IGitSession session), HResult -2146233088