Failed to connect to the specified repository

0
  LibGit2Sharp.LibGit2SharpException: request failed with status code: 400    at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in /_/LibGit2Sharp/Core/Ensure.cs:line 155    at LibGit2Sharp.Core.Ensure.ZeroResult(Int32 result) in /_/LibGit2Sharp/Core/Ensure.cs:line 173    at LibGit2Sharp.Core.Proxy.git_remote_connect(RemoteHandle remote, GitDirection direction, GitRemoteCallbacks& remoteCallbacks, GitProxyOptions& proxyOptions) in /_/LibGit2Sharp/Core/Proxy.cs:line 2172    at LibGit2Sharp.Repository.ConnectToAnonymousRemote(RepositoryHandle repositoryHandle, String url, CredentialsHandler credentialsProvider, CertificateCheckHandler certificateCheckHandler, GitProxyOptions proxyOptions) in /_/LibGit2Sharp/Repository.cs:line 746    at LibGit2Sharp.Repository.ListRemoteReferences(String url, CredentialsHandler credentialsProvider, CertificateCheckHandler certificateCheckHandler, ProxyOptions proxyOptions) in /_/LibGit2Sharp/Repository.cs:line 702    at Mendix.Modeler.VersionControl.Git.GitRemoteConnector.ListRemoteReferences(String remoteUrl) in Mendix.Modeler.VersionControl.Git\GitRemoteConnector.cs:line 21    at Mendix.Modeler.VersionControl.Operations.Git.GitGetBranchesOperation.ListRemoteBranches(String remoteUrl) in Mendix.Modeler.VersionControl.Git\Operations\GitGetBranchesOperation.cs:line 119    at Mendix.Modeler.VersionControl.Operations.Git.GitGetBranchesOperation.GetBranchesRemotely(String remoteUrl) in Mendix.Modeler.VersionControl.Git\Operations\GitGetBranchesOperation.cs:line 111    at Mendix.Modeler.VersionControl.Operations.Git.GitGetBranchesOperation.Execute(GetBranchesRequest& request) in Mendix.Modeler.VersionControl.Git\Operations\GitGetBranchesOperation.cs:line 48 Been stuck in this error , can’t connect to all team server , and cloud repository
asked
1 answers
0

Hey Hi,

I was also facing this issue and I found a solution.

 

Please do follow the steps below

1. open cmd in some folder and run git clone <team server git link>

To Find Team server link refer below image. 

 image.png

 

2. If you get error fatal: unable to access then do remove .gitconfig file

git clone error.png

 

Remove or rename from "C:\Users\<user account>\.gitconfig" to old.gitconfig 

 

image.pngimage.png

 

3. [OPTIONAL] If you get SSL error then do follow this step.

Open internet options then clear SSL certificates

To open Internet Options just do search in windows search

internet Opt.png

from internet Options click on content and clear SSL Certificates by clicking on clear SSL State.

Internet Options.png

 

Now the issue will get resolved. Now open Mendix Platform - Apps and edit your app in Mendix Studio Pro. From mendix portal you will get SSL certificate req.  

 

If still you face issue please reinstall the git from 

  • https://git-scm.com/downloads and install it with the administrator credentials. and please check the git path in system environment variables under path.

Thanks,

Dhananjay

answered