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,456,290
Community Members
 
Community Events
176
Community Groups

Fetch one repository from the Bitbucket server using personal access token

We have to fetch one repository from the Bitbucket server using script – i.e. without any user interference. One way to achieve this is by generating “personal access token” and using that in the script as described in here : https://confluence.atlassian.com/bitbucketserver/personal-access-tokens-939515499.html?utm_campaign=in-app-help&utm_medium=in-app-help&utm_source=stash#Personalaccesstokens-usingpersonalaccesstokens

But we are not able to fetch the repository using the method described in the page. We are getting error as seen in the screenshot below. Tried to search in the internet and found something similar here https://community.atlassian.com/t5/Bitbucket-questions/How-do-you-clone-a-repository-from-Bit-Bucket-server-using-a/qaq-p/751179. But this also points to the same documentation above. We tried with postman as well where same response / error displayed.

$ curl -k -H "Authorization: Bearer MjUyOTA3NzcyNjAxOnLN/Yix4pmo2DyDnXXXXXXXX" https://bitbucket.cloud.foxtel.com.au/scm/~kundub/test1.git
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 116 0 116 0 0 281 0 --:--:-- --:--:-- --:--:-- 282Invalid request from host 203.18.237.205: Note that Bitbucket does not support Git's legacy HTTP transport protocol.

kundub@LT231RPF MINGW64 ~/Desktop/Foxtel/VSCode

1 answer

0 votes

Did you find the answer to this?

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events