Hi friends, I have a problem when trying to Push code from UiPath Studio to a Bitbucket repo. I get the following error:
20.10.4+Branch.master.Sha.6a6cfd6dfbeb86aec47564af2f9465ef0bf43df4
Unable to push to configured remote.
Error: LibGit2Sharp.LibGit2SharpException: failed to receive response: The server returned an invalid or unrecognized response
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](ExecuteArgs`1 args)
at UiPath.Studio.Plugin.Git.Services.Core.PushService.Push(IRepository repository, RemoteModel remote, Boolean forcePush)
at UiPath.Studio.Plugin.Git.Services.UI.PushUiService.PushInternal(IRepository repository, RemoteModel 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, Func`1 repoFactory)
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
When I push from Windows CMD there is no problem. The strange thing is that this was working fine untill a couple of days ago. I have checked with IT support with my company and they have checked firewalls and whatnot. But it can’t be firewall as pushing from CMD works fine.
Any ideas? What version of Git does UiPath Studio have? My Studio version:
Studio Pro 2020.10.4 - 1/26/2021
Enterprise License
Windows Installer
License Provider: Orchestrator
Activation ID:
Microsoft Windows Server 2016 Datacenter 64-bit
.NET Framework Version 4.8 or later
The Git-version that I’ve installed in Windows: 2.35.1
Note: Cloning an existing repo from Bitbucket works fine, as does commit… but not Push.
Here is my git-config:
[core]
bare = false
repositoryformatversion = 0
filemode = false
symlinks = false
ignorecase = true
logallrefupdates = true
[remote "origin"]
url = https://mycompanybitbucketurl/scm/rpa/testing.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
Here is screenshot from UiPath Studio:
Thank you.
EDIT: Ok so I got it working. The solution was switching from HTTPS to SSH authentication. I had to set up public/private key as described here for Bitbucket: Creating SSH keys | Bitbucket Data Center and Server 7.16 | Atlassian Documentation
Bit it still is a mystery as to why HTTPS authentication no longer works when it comes to pushing changes. Perhaps someone has changeg permissions… who knows.