How to resolve the LibGit2Sharp.LibGit2SharpException: failed to send request: The server name or address could not be resolved Error?

0
Recently, I've started Rapid Dev course at the Mendix Academy. I've stuck on one of the first lessons https://academy.mendix.com/link/modules/80/lectures/519/3.2-Explore-Mendix-Studio-Pro After clicking on the "Edit in Studio Pro" button, the Studio Pro Opens but the error "LibGit2Sharp.LibGit2SharpException: failed to send request: The server name or address could not be resolved" appears. I tried a few possible solutions from the forum but nothing works. Can you help me please?   Logs: ERROR lambda_method265 Failed to get branches from remote repository. Details: LibGit2Sharp.LibGit2SharpException: failed to send request: The server name or address could not be resolved    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 102   at Mendix.Modeler.VersionControl.Operations.Git.GitGetBranchesOperation.GetBranchesRemotely(String remoteUrl) in Mendix.Modeler.VersionControl.Git\Operations\GitGetBranchesOperation.cs:line 94   at Mendix.Modeler.VersionControl.Operations.Git.GitGetBranchesOperation.Execute(GetBranchesRequest& request) in Mendix.Modeler.VersionControl.Git\Operations\GitGetBranchesOperation.cs:line 48
asked
2 answers
1

I don't know how but the issue has been solved.

I just reinstalled the mendix app twice and restored default http/https proxy settings.

answered
0

How “netsh.exe winhttp reset proxy” resolved the “LibGit2Sharp.LibGit2SharpException” error in Mendix | by Tjark | Sep, 2024 | Medium

 

Here's my solution for this issue:

 

LibGit2Sharp.LibGit2SharpException: failed to send request: The server name or server address could not be processed.

 

After some troubleshooting, I found that running the command below in a Command Prompt with administrator rights resolved the issue:

 

netsh.exe winhttp reset proxy

 

This fixed the problem for me, and I was able to work with my Git repository without any further issues.

 

Hope it helps everyone who comes across this issue as well!

 

answered