libgit2 / libgit2/libgit2sharp

CanClone Failed to send request: the operation timed out

Ouverte
#1,746 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Langage dominant
C#
Étoiles
3.5k
Forks
925
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

I downloaded the code to run the clone method in the unit test natively, and an exception occurred
Failed to send request: the operation timed out
In LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in F:\myTrialProjects\netcore\LibGit2Sharp\LibGit2Sharp\Core\Ensure.cs: line 154
In LibGit2Sharp.Core.Ensure.ZeroResult(Int32 result) in F:\myTrialProjects\netcore\LibGit2Sharp\LibGit2Sharp\Core\Ensure.cs: line 172
In LibGit2Sharp.Core.Proxy.Git_clone(url String, the String workdir, GitCloneOptions & opts) in F:\myTrialProjects\netcore\LibGit2Sharp\LibGit2Sharp\Core\Proxy in cs: line 276
In LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options) in F:\myTrialProjects\netcore\LibGit2Sharp\LibGit2Sharp\Repository of cs: line 793
In LibGit2Sharp.Repository.Clone (String sourceUrl, String workdirPath) in F:\myTrialProjects\netcore\LibGit2Sharp\LibGit2Sharp\Repository of cs: line 727
In LibGit2Sharp.Tests.CloneFixture.CanClone(String url) in F:\myTrialProjects\netcore\LibGit2Sharp\LibGit2Sharp Tests\CloneFixture cs: in line 25

My computer os is win10 64bit.
I am looking forward to your help and Suggestions so that I can solve this problem.

The code I ran on my centos 7.5 virtual machine was successful,I installed libgit2 and dotnet build console ,Why doesn't Windows work?
var co = new CloneOptions();
CredentialsHandler credHandler = (_url, _user, _cred) => new UsernamePasswordCredentials { Username = "030586", Password = "12345678" };
co.CredentialsProvider = credHandler;
Repository.Clone("http://git.xxxx.com/030586/aaa-test", @"aaatest",co);

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Commencez par LibGit2Sharp.Tests/CloneFixture.cs dans CanClone (ligne 25), puis suivez Repository.Clone à travers Core/Ensure.cs (lignes 154 et 172) et Proxy.Git_clone (ligne 276). Comparez le timeout de Windows 10 avec l’exécution réussie sur CentOS 7.5 ; le travail est terminé lorsque la cause spécifique à Windows est identifiée et documentée, ou lorsqu’un correctif est vérifié.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
csharp, git
Domaine
tooling
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.