Skip to content
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

Failed to clone: authentication required but no callback set #901

Closed
ghost opened this issue Nov 29, 2022 · 2 comments
Closed

Failed to clone: authentication required but no callback set #901

ghost opened this issue Nov 29, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 29, 2022

Trying to clone a public github repository, but recieving the error 'failed to clone: authentication required but no callback set; class=Ssh (23)'
I am using just the HTTP url. no SSH involved.

` let url = "https://github.com/rust-lang/book";

let _ = match Repository::clone(url, path) {
    Ok(_) => {
        println!("cloned the book from github")
    }
    Err(e) => panic!("failed to clone: {}", e),
};

`

@ehuss
Copy link
Contributor

ehuss commented Nov 29, 2022

You may want to check if you have an insteadOf in your global git config.

@ghost
Copy link
Author

ghost commented Jan 14, 2023

Thanks!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant