[Bitbucket Cloud] Authentication keeps failing.
See original GitHub issueI’m trying to authenticate for bitbucket.org using username@company.com. I created an API Token and I am using it as a password.
`bitbucket = Bitbucket( url=‘https://api.bitbucket.org’, username=os.getenv(“BITBUCKET_USER”), password=os.getenv(“BITBUCKET_PASSWORD”), cloud=True)
repo = bitbucket.get_repo(‘PROJECT’, ‘REPO’) `
This gets me a
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.bitbucket.org/2.0/projects/PROJECT/repos/REPO
I’m a noob and I am totally fine being told that I have done a stupid but I can’t seem to get the authorization to work. I am willing to add documentation for bitbucket cloud if someone tells me how this is supposed to work.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Bitbucket: Authentication failed - since March 1st 2022
It seems the issue you are facing is due to the recent account password deprecation that happened on March 1st 2022, and you...
Read more >atlassian sourcetree - Authentication failed to bitbucket
Navigate to C:\Users\USERNAME\AppData\Local\Atlassian\SourceTree and delete (or rename) the file named passwd. Restart SourceTree and execute a command (e.g. ...
Read more >Bitbucket Authentication Failed | Overview of ... - eduCBA
So first, we need to verify the user's login credential on the Bitbucket server. There are many causes for authentication failed errors, such...
Read more >Create a Bitbucket App Password example - TheServerSide.com
To avoid a fatal invalid credentials or authentication failed Bitbucket error on login, you must use a Bitbucket App password as part of ......
Read more >Deprecating Atlassian account password for Bitbucket API and ...
Bitbucket previously shared that starting March 1, 2022, users will not be able to use their Atlassian account password to authenticate with the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @gonchik, I think this issue can be closed. The error is because the thread starter used his E-Mail and an API Token (App password) for authentication. As mentioned, if you use an API Token (App password), you have to use your bitbucket username for log-in. That is a limitation from Bitbucket. It does not work with the E-Mail.
This is now also stated in the documentation by the PR mentioned above.
@jensvog thank you for your input and changes!