The requested URL returned error: 401 while accessing https

Ymen March 30, 2016

This question is in reference to Atlassian Documentation: 403 while accessing https://{username}@bitbucket.org/{username}/{repo slug}.git/info/refs

#git push -u origin --all
Password:
error: The requested URL returned error: 401 while accessing https://username@bitbucket.org/username/reponame.git/info/refs

fatal: HTTP request failed

--Question : What could be the reason. This is my first upload

2 answers

3 votes
Andrew Seidel July 29, 2016

Did you end up resolving this Yash? In the past we had this error due to it being setup under a different origin account, so we'd switch it using this command:

git remote set-url origin https://username@bitbucket.org/username/cms.git

This is not working anymore to resolve this error.

Amod Kaveeshwar November 7, 2017

I have similar issue.

 

 Errors getting changes for BIOS-API0479-24 
(com.atlassian.bamboo.repository.RepositoryException : java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote https://bamboo-user03:********@git.okapi-np.in.telstra.com.au/BIOS/topology-service-okapi.git failed with code 128. Working directory was [.]., stderr: [error: The requested URL returned error: 401 while accessing https://bamboo-user03:********@git.okapi-np.in.telstra.com.au/BIOS/topology-service-okapi.git/info/refs, , fatal: HTTP request failed])

 

what could be the issue?

2 votes
ndamico-schnucks July 26, 2018

I have this issue, and the first suggestion did not work. (git remote set-url origin https://username@bitbucket.org/username/cms.git)

Any ideas?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events