libgit2 / libgit2/libgit2sharp
Error pushing to github using 0.26.2
Nessuno ha ancora preso questa issue.
- Lingua principale
- C#
- Stelle
- 3.5k
- Fork
- 925
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I'm using 0.26.2 to push files to github, and it gives me request failed with status code 500, and I'm using personal access token of github for authentication.
following is how I create push option
return new PushOptions()
{
CredentialsProvider = CreateCredentialsProvider(),
OnPushStatusError = new PushStatusErrorHandler(error =>
{
throw new NonFastForwardException($"{error.Message} at {error.Reference}");
})
};
and following is how I create Credentials Provider:
return new CredentialsHandler((url, userNameFromUrl, types) =>
{
return new UsernamePasswordCredentials()
{
Username = credential.UserName,
Password = credential.Password ?? string.Empty,
};
});
can somebody help me to find out what's wrong
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Non è indicato alcun file o test. Inizia riproducendo il push con libgit2sharp 0.26.2 e i PushOptions e CredentialsHandler mostrati, quindi esamina tutti i dettagli dell'errore e il comportamento dell'autenticazione. Il lavoro è completato quando è stata identificata una causa riproducibile e una correzione per la risposta HTTP 500 è stata documentata o verificata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp, git, github
- Ambito
- authentication, devtools
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100