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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,455,904
Community Members
 
Community Events
176
Community Groups

401 error when access .../info/refs

Hi

 

I try to enter this URL: https://bitbucket.org/CEMS-Team/CEMS-Team/cems-schemas.git/info/refs and there is a prompt for a username and password.

I tried all combinations of username/email and account password/app password without luck.

I ask about this URL: https://bitbucket.org/CEMS-Team/CEMS-Team/cems-schemas.git/info/refs because the Squiz app uses this URL and I get:
"Error occurred when running git command "/usr/bin/git pull": error: The requested URL returned error: 401 while accessing https://CEMS-Team:*****@bitbucket.org/CEMS-Team/cems-schemas.git/info/refs, , fatal: HTTP request failed"

 

When I pulled this repository using GIT on my computer it was fine when I used my username and app password.

 

Please help.

1 answer

0 votes
Ben Atlassian Team Jul 19, 2022

G'day!

I have noticed that you have not yet been reached out to by our Community so figured I would jump in.

I do not have any product-specific knowledge for Squiz, however, I have made some observations and found some relevant information that may be useful to you.

The URL you have provided does not work for me either with my own repository - however, I am unsure of what the purpose behind the "/info/refs" portion is as that is not generally what we would see when running git commands. The only time I have seen this is when this error message displays with that portion appended to the URL, it only displays when a valid git repository cannot be found:

Pushing to https://USERNAME@bitbucket.org/USERNAME/REPONAME.git  fatal: https://USERNAME@bitbucket.org/USERNAME/REPONAME.git/info/refs not valid: is this a git repository?

This makes sense as the first URL you have provided is not valid, it has the workspaceID (CEMS-Team) twice in the URL instead of once:

https://bitbucket.org/CEMS-Team/CEMS-Team/cems-schemas.git/

I would suggest leaving this /info/refs portion out, as aside from this, the URL is correct in the 401 Error you mentioned (including your inclusion of username:AppPassword in the URL).

Checking the documentation for Squiz also shows that "info/refs" is not needed in the URL if you check the URL listed in the screenshot:
https://docs.squiz.net/matrix/version/latest/tutorials/designs-and-templates/set-up-a-git-bridge.html#clone-the-repository-to-matrix 

If you are able to clone locally without issue, and have followed the above, yet still encounter issues with Squiz - I would suggest reaching out to their support team for further assistance: https://my.squiz.net/ 

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events