Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Download from repo-downloads using curl with app-password

Erez_Amihud December 16, 2019 edited

Hi, I am trying to download a file from the repo downloads using curl, with the command:

curl --user "{username}:{password}" -L -O bitbucket.org/{rest-of-url}/downloads/cover-precent.txt

 The problem is, It works correctly when I am doing it with my username and password, but fails (no error, just gets an empty file, with output of 1 line instead of 2) when using an app password (with all the permissions).

How do I solve that?

 

1 answer

1 accepted

1 vote
Answer accepted
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 16, 2019

Hello @Erez_Amihud,

Welcome to the Community!

Can you run the same command with -v option to make curl print verbose log of the request? My guess is that you're actually getting an error response back. I can see some 401s on our side when fetching that file with curl.

If you're getting 401 back, please double check that you created a password with the right scopes and that you use copy and paste it properly.

I also see few 404s – maybe the URL wasn't correct?

Hope this helps.

Cheers,
Daniil

Erez_Amihud December 18, 2019

Yes, in the end the url wasn't currect, thank you :)

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian community, job interviews, interview tips, career advice, interview preparation, job search, interview experiences, hiring process, atlassian careers, community discussion, interview best practices

Interview Tips & Pet Peeves ✍️

Join the discussion on interview best practices and common pitfalls. Share your experiences and learn from others in the Atlassian Community.

Share you experiences!
AUG Leaders

Atlassian Community Events