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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.