Skip to content

Error pushing to github using 0.26.2 #2101

Open
@SnoopyKun

Description

@SnoopyKun

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions