I had to start using an API key to push code to a repo that I have been updating for months. I use GIT from a command line (git push origin dev) to update the repo and even adding the API key in the remote url, (git remote set-url origin https://<Username>:<API Key>@bitbucket.org/<organization>/<repository>.git)
I an still getting an error that states "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."
I know that I am authenticated. I can authenticate through the website and I have full access to the repository.
What am I doing incorrectly and how can I fix it?
Hey guys,
There was an active incident earlier, but as stated in the report, it should have been resolved. Incident report: https://bitbucket.status.atlassian.com/incidents/h51sr145gsmx ⚠️
Can you check and see if things are working now?
Cheers,
Tobi
Good Morning,
I have just tried and it continues to fail. I keep getting the error that was listed in my original question. I can see that my key was accessed (through the Security/API Tokens page from Bitbucket site).
I double checked my remote URL and it is correct and pointing to the correct repo. From Bitbucket web site, I can access the repo and I have full control. The only difference is the token.
What can I check/do now?
Thanks,
Tim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm @Tim_Savage ... can you check this article: Using API tokens? Does your API token (not key) use scopes? 👈
Can you also maybe try using static username, a.k.a. this:
git clone https://x-bitbucket-api-token-auth@bitbucket.org/{workspace}/{repository}.git
As for API token scope, make sure it has at least the following permissions enabled:
Repositories: Read (repository)
Repositories: Write (repository:write)
If the error persists, check your local Git credential manager if it's providing old, cached credentials:
Windows: Clear entries for bitbucket.org in Credential Manager.
macOS: Remove Bitbucket-related items from Keychain Access
Here's another article that might be helpful: Resolve authentication error - "remote: Invalid username or password" in Bitbucket Cloud
Cheers,
Tobi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm failing to authenticate via https or ssh.
https causes a couple browser tabs to pop up saying I've authenticated, then a box asking for my password (we're on SSO, I should not have a separate Bitbucket password.) Git console shows a bunch of html which at the core seems to say 403: CSRF verification failed. Request aborted. At the end: error: unable to read askpass response from ...git-askpass.exe
ssh I don't regularly use, my next step is to try generating a new key. There's a warning about post-quantum keys that older threads indicate we can ignore until Bitbucket adds the support. Then there's a permisison denied error.
Some details removed because the forum thinks the pasted error was bad html.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've been experiencing the exactly same behavior here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Today I was able to pull and fetch fine over https. I probably have a setup issue with ssh but that's not an issue for me if https works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.