Artifact download too long

Hi !

I’m trying to use the github API to download an artifact (doc)

Everything goes really well when I do like the example with CURL :

curl -i \
  -H "Accept: application/vnd.github.v3+json" \
  -H "Authorization: token XXXXXX" \
  https://api.github.com/repos/{owner}/{repo}/actions/artifacts/{id}/zip

I have a quick and easy answer.

But when I try to do the same with Octokit or an http service, the response takes about 30 seconds to 1 minute sometimes … (what exceeds the expiration date of the URL).

Do you have solutions for this bug?

Thanks :slight_smile: