hub icon indicating copy to clipboard operation
hub copied to clipboard

Not found (404), no matter what

Open vincent-lg opened this issue 3 years ago • 1 comments

Command attempted:

git pr list

What happened:

  1. First I'm asked for my username and password, although git is configured (can pull and push with no trouble). That's new. But then when I enter my Github username and password I get the "not found" error.

  2. With more debug, there is this (slightly) more useful error message:

    > POST https://api.github.com/authorizations
    > Authorization: Basic [REDACTED]
    > Accept: application/vnd.github.v3+json;charset=utf-8
    {"note":"hub for vince@LAPTOP-XXX","note_url":"https://hub.github.com/","scopes":["repo","gist"]}
    < HTTP 404
    {"message":"Not Found","documentation_url":"https://docs.github.com/rest"}
    Not Found
    

    I would guess this is unexpected. Although I gave you the git pr command, a git issue gives me exactly the same result, which is probably not surprising, because it fails on login. Which means it's not using Git's authorization system, since it asks me my username and password, although Git has long since stopped doing so. That's all speculation though.

More info:

  • Operating system: Windows 10 (64-bit).
  • git version: 2.27.0.windows.1.
  • hub version: 2.14.2.

Thanks,

vincent-lg avatar Dec 15 '20 10:12 vincent-lg

Sorry for the inconvenience! Workaround here https://github.com/github/hub/issues/2655#issuecomment-735836048

mislav avatar Dec 15 '20 21:12 mislav