Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Your credentials lack one or more required privilege scopes. - On WSL2

Christoph Schröer
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!
September 1, 2023

Hello,

I am facing a problem using git and bitbucket on WSL2.

I have a user and created a Bitbucket App Password. I use HTTPS for cloning.

For cloning and pulling, the App Password works well.
Only for pushing changes, I get the following error message:
remote: Your credentials lack one or more required privilege scopes.
fatal: unable to access 'https://bitbucket.org/.../.git: The requested URL returned error: 403

I used the same App Password on the windows host system or on other linux systems successfully, but on WSL, it is not working.

How can I handle this error?

Thanks and best,
Christoph

1 answer

1 accepted

1 vote
Answer accepted
Christoph Schröer
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!
September 1, 2023

Ok, the APP password was not set correctly in the remote URL

git remote -v

git remote set-url origin https://cschroeer:CORRECT_APP_PASSWORD@bitbucket.org/....git

 

It is a bit crazy that pulling works, but for pushing this has to be set extra. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events