New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LibGit2Sharp.LibGit2SharpException: failed to parse supported auth schemes: The operation identifier is not valid #2048
Comments
@Rpatil3g did you mange to get around this issue? I think its definitely a breaking change in GitHub as had similar issues with GitKraken too with the same error message. |
@Rpatil3g @GeorgeTTD did anyone of you manage to get around this issue ? i'm having the same with LibGit2Sharp 0.27.2
|
@Kh-Ghassen there is apparently a workaround but its a bit low level for us as we don't have the C skills to diagnose the issue. so we have chosen to remove the dependency from our source. |
Thanks @GeorgeTTD , can i ask you what did you choose for replacement ? |
@Kh-Ghassen our use case is very limited so may not work for yours but we have gone with calling command line git inspired by this repo: https://github.com/WonkySpecs/GitWrapper/blob/master/Git.cs As a side note we also use GitKraken that use libgit2 and I was having the same issue with their product. When I spoke to their support they said they are removing libgit2 and using command line git instead, I assume in a similar way. |
@GeorgeTTD Cool , thank you very much , i think we'll try to go with command line also |
// code start
LibGit2Sharp.PullOptions options = new LibGit2Sharp.PullOptions();
options.FetchOptions = new FetchOptions();
options.FetchOptions.CredentialsProvider = new CredentialsHandler(
(url, usernameFromUrl, types) =>
new UsernamePasswordCredentials()
{
Username = _gitCredsUser,
Password = _gitCredsPassword
});
// end code
I am using LibGit2Sharp dll of 0.26.0.0, from last few days I am getting "failed to parse supported auth scheme" error while doing git pull. My git repository is on GITHUB. I am sure there might security related changes done on github side. that's why this error come.
Reproduction steps
Expected behavior
git pull should work without error.
Actual behavior
Version of LibGit2Sharp (release number or SHA1)
0.26.2
Operating system(s) tested; .NET runtime tested
windows 10
The text was updated successfully, but these errors were encountered: