packagist: Cannot run composer update, hangs or returns Content-Length mismatch

I’ve been unable to run composer update on several different servers this morning.

It either hangs seemingly indefinitely, or returns the error Content-Length mismatch, received 415311 bytes out of the expected 1479855 http://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 3
  • Comments: 15 (2 by maintainers)

Most upvoted comments

Hey sorry we had issues on one of the north american mirrors, should be resolved now.

Switching mirrors seems to have fixed it for me.

composer config --global repo.packagist composer https://packagist.jp

Here’s the particular URL after running composer update with -vvv

Downloading https://repo.packagist.org/p/provider-2019%248579c5b26c9cbf50c685823b39b19178dbe76a97d5d235ea43d974fb3d5ce89a.json Content-Length mismatch, received 1113847 out of 1702304 bytes:

(then a big base64 dump)