phive: [ERROR] No RateLimit present in response

I get the following error when trying to build my docker file which worked fine a couple hours ago.

Step 51/64 : RUN phive --no-progress install --global --trust-gpg-keys 31C7E470E2138192 squizlabs/php_codesniffer
 ---> Running in d4b64f83fa46
Phive 0.13.2 - Copyright (C) 2015-2020 by Arne Blankerts, Sebastian Heuer and Contributors

[ERROR]   No RateLimit present in response

In a previous run it failed one package earlier:

Step 50/64 : RUN phive --no-progress install --global --trust-gpg-keys E82B2FB314E9906E FriendsOfPHP/PHP-CS-Fixer
 ---> Running in daaa9daa3027
Phive 0.13.2 - Copyright (C) 2015-2020 by Arne Blankerts, Sebastian Heuer and Contributors
[ERROR]   No RateLimit present in response

The 6 packages I downloaded before this worked fine. What could be going on? Am I downloading too fast?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 48 (26 by maintainers)

Most upvoted comments

Okay, fix implemented and tested. Will be in the next release.

I created a 0.13.3 Release for you.

This will mark the definite end for PHP 7.1 compatible releases though.

I also just ran into it today for “selfupdate”. So the release is very welcome indeed 😃

Looks like Github changed the download of assets to be a redirect to s3 (of all places, why not azure? ;-p ) rather than having it count as an API hit.

While that’s a good thing, phive seems to be confused about it. Not sure why it would work in some cases then and not fail all the time.

This needs a bit more investigation but i’ll probably relax the code to simply be happy if no RateLimit header is there.

@ravage84 Working on it, with a bit of luck (read: my daughter sleeping a bit earlier today 😉 ) I’ll release 0.14.0 today.