I tried the following using the Command Prompt window:
git clone https://x-token-auth:<TOKEN>@bitbucket.org/username/jdbccrudXX.git
With the error response:
Cloning into 'jdbccrudXX'...
remote: You may not have access to this repository or it no longer exists in this workspace. If you think this repository exists and you have access, make sure you are authenticated.
fatal: Authentication failed for 'https://bitbucket.org/username/jdbccrudXX.git/'
Hi Martin
Bitbucket deprecated the old app password / token flow for HTTPS cloning a while back.
If you're using a repository access token, double-check that it was generated with READ permission on the repository scope.
Workspace-level tokens won't work for cloning unless you explicitly grant repo access.
Quick diagnostic:
run git ls-remote https://x-token-auth:<TOKEN>@bitbucket.org/username/jdbccrudXX.git
If that also fails with the same auth error, it confirms the token itself lacks the right scopes. Regenerate it from Repository Settings > Access Tokens and make sure "Read" is checked.
Let us know what you find.
Cheers
Ajay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.