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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Download from repo-downloads using curl with app-password Edited

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

curl --user "{username}:{password}" -L -O{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

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.


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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,826 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you