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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join this webinar on June 25/26th to learn how to build secure CI/CD workflows using Bitbucket Pipelines and get tips from our own engineers on how to speed up builds and operate at scale.
Register todayOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.