Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

403 Error on Clone

clark_hruska October 3, 2018

Hello,

I just created a new repository and am trying to clone it locally. I have Admin permissions on the repository and am the owner of the associated team. I am the only team member of the repo and team so it is not a plan issue, although I am on the standard plan regardless. I am on git version 2.8.1. I have interacted with bitbucket using other accounts in the past. 

When attempting to clone a repo, I am getting the following error:

fatal: unable to access 'https://{Username}@bitbucket.org/{username}/{repo-name}.git/': The requested URL returned error: 403

Please advise. This seems like a bitbucket bug.

Thanks,

Clark 

3 answers

1 accepted

6 votes
Answer accepted
minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 4, 2018

Hi

At a guess you have 2FA turned on for your account. If that is the case you can't use basic username/password with HTTPS Git urls.

If you upgrade your Git install to 2.19, you will get find you get prompted by the Git Credential Manager for your details. If you enter your username/password into that it detects you are using 2FA and will prompt you to go through an OAuth grant process. The end result is you have an Access_token which Git can then use to access yoru HTTPS url.

clark_hruska October 4, 2018

Thanks Michael!

 

I did not have 2FA enabled but updating Git worked! Much appreciated. 

 

-Clark 

Like # people like this
sureshfreeelective
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 9, 2019

I had this forbidden issue (403 error). On updating my git to the new version, it started working. So I would recommend this to everyone.

Like # people like this
Jon Bremont
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 14, 2019

Why the ????  Randomly stops working and I have to come here to realize that I need to upgrade my git?  Typical git overhead bs.

edjimenez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 7, 2019

Thanks solve my problem

3 votes
Warren Edwards
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 2, 2019

Thank you - upgrading Git (from 2.14 to 2.20) fixed my 403 issue.

 

Kind regards

Warren

0 votes
Abhijit Parida
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 2, 2019

'https://{Username}@bitbucket.org:{Your Password}/{username}/{repo-name}.git/'

 

enter your password after your id when requesting bit bucket by placing a colon .   Than it will ask for a password through spash . Enter the same password again to complete your request.

 

It will work fine , even i also had faced that problem and its solved by this .

 

Thanks & Regards 

Jr. Software Developer 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events