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

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

Open
gavin-shaw opened this issue Nov 8, 2021 · 8 comments
Open

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

gavin-shaw opened this issue Nov 8, 2021 · 8 comments

Comments

@gavin-shaw
Copy link

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 gavin-shaw changed the title Github bridge "token has wrong format" Github Bridge - Manual Token - "token has wrong format" Nov 8, 2021
@mohe2015
Copy link

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

@gavin-shaw
Copy link
Author

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 git@github.com: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.

@ghost
Copy link

ghost commented Feb 4, 2022

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?

@mthuggett
Copy link

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.

@MichaelMure
Copy link
Owner

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

@jarbus
Copy link

jarbus commented Nov 21, 2022

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.

@MichaelMure MichaelMure reopened this Nov 22, 2022
@MichaelMure
Copy link
Owner

@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.

@mcepl
Copy link
Contributor

mcepl commented Mar 14, 2024

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?

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

6 participants