git-bug icon indicating copy to clipboard operation
git-bug copied to clipboard

Github Bridge - Manual Token - "token has wrong format"

Open gavin-shaw opened this issue 3 years ago • 8 comments

Follow the git bug bridge configure wizard as per below. Check the error at the end. A breaking change at github?

This is a real token from github that I have expired, just so you can see the format. Other personal data has been redacted.

git bug bridge configure
[1]: github
[2]: gitlab
[3]: jira
[4]: launchpad-preview
target: 1
name [default]: 

Detected projects:
[1]: github.com/my-user/private-project

[0]: Another project

Select option: 1
Github login: my-user

[1]: enter my token
[2]: interactive token creation

Select option: 1

You can generate a new token by visiting https://github.com/settings/tokens.
Choose 'Generate new token' and set the necessary access scope for your repository.

The access scope depend on the type of repository.
Public:
  - 'public_repo': to be able to read public repositories
Private:
  - 'repo'       : to be able to read private repositories

Enter token: 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
token has incorrect format

gavin-shaw avatar Nov 08 '21 12:11 gavin-shaw

For me using the latest version in master and using "interactive token creation" worked.

mohe2015 avatar Nov 27 '21 23:11 mohe2015

Confirmed manual token is also working on master, thank you @mohe2015 . I think we should leave this open for others until master hits the package managers?

I am on mac with brew.

For those landing here, check the releases page first to see if there is a release after 2021-11-28. If not, follow instructions under Installation > Compile from git (unstable) in the README.md.

git clone [email protected]:MichaelMure/git-bug.git
make install
export PATH=$PATH:$(go env GOROOT)/bin:$(go env GOPATH)/bin

Tested and working on Mac M1. Make sure you have latest version of go installed.

gavin-shaw avatar Nov 28 '21 06:11 gavin-shaw

I have this problem too, with the git-bug packaged in nixpkgs.

Please produce a numbered release with this bug, otherwise distributions won't pick it up.

IMHO this project is significantly less useful without the github bridge. Unbreaking that would seem worthy of a release, no?

ghost avatar Feb 04 '22 20:02 ghost

getting same with gitlab, tried to setup this morning, won't accept the token. checked and re-checked. expired one tried a new one. Same issue.

mthuggett avatar Feb 17 '22 11:02 mthuggett

I believe the last release fix that issue. Feel free to reopen if not.

MichaelMure avatar Nov 20 '22 16:11 MichaelMure

Still seems to be broken for me, but the binaries for 0.8 still say version 0.7.2, so I'm not sure what is going on.

jarbus avatar Nov 21 '22 20:11 jarbus

@jarbus I think that somehow you do have a binary for 0.7.2. I just checked the pre-build binary of the v0.8.0 release, they report the correct version.

... which would also explain why you still see the bug.

MichaelMure avatar Nov 22 '22 14:11 MichaelMure

This is awesome, so 0.7.2 is broken because of this bug, and 0.8.0 is broken because of #934. Nice! What should one do?

mcepl avatar Mar 14 '24 18:03 mcepl