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

Fetch one repository from the Bitbucket server using personal access token

Bijitesh September 19, 2019

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 :

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 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"
% 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 Note that Bitbucket does not support Git's legacy HTTP transport protocol.

kundub@LT231RPF MINGW64 ~/Desktop/Foxtel/VSCode

1 answer

0 votes
priyak1991dey December 14, 2022

Did you find the answer to this?

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events