libgit2 / libgit2/libgit2sharp
LibGit2Sharp.LibGit2SharpException: request failed with status code: 502
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 925
- PR merge metrics
- No merged PRs in 30d
Description
I have a repo that i am trying to push to remote, The repo is about 1.5GB, I am able to push from the terminal. I am able to initialize and push a repo using the following code.
I am thrown the following error LibGit2Sharp.LibGit2SharpException: request failed with status code: 502
var destRepoPath = @"D:\DP\T\Test85";
var stageOptionsWithIncludeIgnore = new StageOptions { IncludeIgnored = true };
using (var repo = new Repository(destRepoPath))
{
Commands.Stage(repo, "*", stageOptionsWithIncludeIgnore);
var origin = repo.Network.Remotes["origin"];
var pushRefSpec = "refs/heads/master";
repo.Network.Push(origin, pushRefSpec,
new PushOptions
{
CredentialsProvider = (url, user, cred) => new UsernamePasswordCredentials { Username = "Username", Password = "Password" }
});
}
Version of LibGit2Sharp: 1.0.235
I use VS 2017 and C# 4.5
Appreciate any help, thanks
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the shown Repository.Network.Push call and its PushOptions, then compare the LibGit2Sharp push against the terminal push for the 1.5GB repository. Check whether the 502 can be reproduced with LibGit2Sharp 1.0.235; done means identifying a library or remote-side cause and documenting the next action.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, git
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100