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 artifacts.zip --location --header "PRIVATE-TOKEN: $ACCESS_TOKEN" "https://gitlab.com/api/v4/projects/1/jobs/artifacts/ci-pipeline/raw/*?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

Versions

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.