Hello,
For the last month or two I have been trying to make modifications to a repository that I had stored locally on my PC but I kept getting the same error:
fatal: unable to access 'https://bitbucket....com/../{repository}.git/': The requested URL returned error: 403
I have tried to clone or pull also in repository and it doesn't let me to do any action.
I have updated the git version from 2.41.0.3 to 2.42.0.2 as said in other posts and I still have the same problem.
I have permissions to access the repository, since if I access the URL it lets me without problems with the same user.
Could it be a bitbucket bug?
Thank you.
Alisson
Hello @Alisson Sifuentes Davila and welcome to the Community!
The error being returned by git indicates an authentication issue :
The requested URL returned error: 403
So I suspect you might be using the old/invalid credentials.
To confirm if this is the case, I would suggest trying to do a fresh clone of the repository in a different folder using the command below :
git clone https://USERNAME:APP_PASSWORD@bitbucket.org/WORKSPACE/REPOSITORY.git
replacing the USERNAME, APP_PASSOWORD, WORKSPACE, and REPOSITORY with the actual values, where :
You can try cloning using the credentials as described above and let us know how it goes :)
Thank you, @Alisson Sifuentes Davila !
Patrik S
Hello @Patrik S ,
is it possible to use that url in this way if it is a bitbucket server I am working on and it is not cloud?
Because my username I have checked that it is the email and I still get the same error.
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Alisson Sifuentes Davila ,
For Bitbucket Server you can create an HTTP Access token and use it with the following syntax :
git clone https://username:MDM0MjM5NDc2MDxxxxxxxxxxxxxxxxxxxxx@bitbucketserver.com/scm/projectname/teamsinspace.git
where you will need to replace bitbucketserver.com with your bitbucket server's domain.
For the username, you should be able to get it by accessing your bitbucket server instance and navigating to Profile Picture > View Profile.
Thank you, @Alisson Sifuentes Davila !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.