Error trying to download artifacts with curl

Problem to solve

Hello, I want to download the latest artifact using a personal access token from a specific branch.

curl --http1.1 --output --location --header "PRIVATE-TOKEN: $ACCESS_TOKEN" "*?job=package"

I get this error:

 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     2    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (18) transfer closed with 2 bytes remaining to read


Thank you for your help

Hi there
Can you try
1 - from different group / project?
2 - different token
3 - inspect that whole url carefully

I did try do get the artifact from a certain job, with the same token at the same project, that worked.
I don’t know what might be the problem with the url.