How does UiPath Studio Perform Git Actions?

Hey everyone!

Here’s an interesting problem I’m trying to track down. I have a repository on dev.azure.com. Cloning that repository works absolutely fine from UiPath Studio. I get the usual prompts and select to authenticate with a personal access token. Pushing and pulling also works fine without any problems. So there’s absolutely no problem using Git with UiPath Studio.

However, using Git from the command line in that same repository fails when trying to connect to the remote repository. For example, the git fetch command fails with the following output (I increased the log level a bit):

10:47:52.024840 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
10:47:52.040467 git.c:460               trace: built-in: git fetch
10:47:52.040467 run-command.c:654       trace: run_command: GIT_DIR=.git git remote-https origin https://dev.azure.com/xxx/xxx/_git/xxx
10:47:52.056089 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
10:47:52.056089 git.c:749               trace: exec: git-remote-https origin https://dev.azure.com/xxx/xxx/_git/xxx
10:47:52.056089 run-command.c:654       trace: run_command: git-remote-https origin https://dev.azure.com/xxx/xxx/_git/xxx
10:47:52.071718 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
10:47:52.087343 http.c:703              == Info: Couldn't find host dev.azure.com in the (nil) file; using defaults
10:47:52.102968 http.c:703              == Info:   Trying 13.107.42.20:443...
10:47:52.118600 http.c:703              == Info: Connected to dev.azure.com (13.107.42.20) port 443 (#0)
10:47:52.118600 http.c:703              == Info: ALPN: offers h2
10:47:52.118600 http.c:703              == Info: ALPN: offers http/1.1
10:47:52.118600 http.c:703              == Info:  CAfile: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
10:47:52.118600 http.c:703              == Info:  CApath: none
10:47:52.118600 http.c:703              == Info: TLSv1.3 (OUT), TLS handshake, Client hello (1):
10:47:52.118600 http.c:703              == Info: OpenSSL SSL_connect: Connection was reset in connection to dev.azure.com:443 
10:47:52.118600 http.c:703              == Info: Closing connection 0
fatal: unable to access 'https://dev.azure.com/xxx/xxx/_git/xxx': OpenSSL SSL_connect: Connection was reset in connection to dev.azure.com:443 

Now I wonder why does UiPath Studio not have the same problem? Does UiPath Studio use a different certificate? What does it do differently in the background?

Does someone have an idea?

@M-Lackner

Welcome to the community

This might help

Cheers

Hi @M-Lackner ,

This might give us an idea - https://learn.microsoft.com/en-us/troubleshoot/azure/devops/git-clone-push-operation-failing-devops-repo