Skip to content

Bitbucket Access Token results in "Error retrieving username 401 Unauthorized" #217

@sullikidoz

Description

@sullikidoz

Thanks for the implementation of Bitbucket Access Tokens!

Unfortunately, I haven't been able to successfully validate this feature. My repro steps:

Download the v1.1 tar for linux

  1. Extract it
  2. Create an Atlassian API token for Bitbucket at https://id.atlassian.com/manage-profile/security/api-tokens (I gave it all scopes just for testing)
  3. export BITBUCKET_USERNAME=myusername and export BITBUCKET_TOKEN=ATATT_etc...
  4. ./gitbackup -service bitbucket results in Error retrieving username401 Unauthorized
  5. I can see that my API token was used "1 minute ago" so it appears to be the right kind of token. I've tried every variation of my username, but it should be Username indicated at https://bitbucket.org/account/settings/.

(I also tried creating a Bitbucket Access Token at https://bitbucket.org/kidozteam/workspace/settings/access-tokens but that got the same result and just said "Never Used" so presumably that's not the right kind of token).

Thanks for any help you can provide!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions