Closed nclm closed 3 years ago
@nclm hey, sorry for slow response here.
I need to look at this more but I was able to reproduce it on my account by trying to clone a private repository using password login. I'm pretty sure this is because it doesn't handle 2FA login properly right now, and so probably I get the 404 because I'm not authenticated.
Do you have 2FA on your account? If so you can pass in an access token using one of:
--token
flag.GITHUB_ACCESS_TOKEN
environment variable.~/.github-token
.There are a couple of things I'll look at here:
If this is a public repo or you don't have 2FA on your account then let me know.
@nclm OK I looked into this properly today. It turns out that Github no longer supports username + password login authentication, and the API is returning its standard 404 response that it gives when the user isn't authenticated (https://docs.github.com/en/rest/overview/other-authentication-methods#basic-authentication).
I haven't been super active maintaining this so had missed the news last year that they were removing this. Apologies.
If you use a personal access token with the "repo" scope it should work fine for private repositories.
I've just released a new version, and now token authentication is required (unless your repo is public, in which case you don't strictly need to authenticate).
Going to close this but LMK if you still have issues.
I tried using gh2md on the computer here at work (running macOS 11.1) and all I get is this:
python --version is Python 2.7.16, python3 --version is Python 3.9.5.
Any idea of what is happening? Thanks!