{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/5218","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/5218/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/5218/comments","events_url":"https://api.github.com/repos/composer/composer/issues/5218/events","html_url":"https://github.com/composer/composer/issues/5218","id":149456420,"number":5218,"title":"Unnable to download packages after updating composer","user":{"login":"Henk8","id":11833224,"avatar_url":"https://avatars.githubusercontent.com/u/11833224?v=3","gravatar_id":"","url":"https://api.github.com/users/Henk8","html_url":"https://github.com/Henk8","followers_url":"https://api.github.com/users/Henk8/followers","following_url":"https://api.github.com/users/Henk8/following{/other_user}","gists_url":"https://api.github.com/users/Henk8/gists{/gist_id}","starred_url":"https://api.github.com/users/Henk8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Henk8/subscriptions","organizations_url":"https://api.github.com/users/Henk8/orgs","repos_url":"https://api.github.com/users/Henk8/repos","events_url":"https://api.github.com/users/Henk8/events{/privacy}","received_events_url":"https://api.github.com/users/Henk8/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/composer/composer/labels/Bug","name":"Bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-04-19T13:04:43Z","updated_at":"2016-04-30T10:15:28Z","closed_at":"2016-04-19T14:45:05Z","body":"When I run this command:\r\n\r\n```\r\ncomposer.phar update -vvv\r\n```\r\n\r\nI get this output:\r\n\r\n```\r\nDownloading https://packagist.org/packages.json\r\nWriting /var/www/developers/ralph/.composer/cache/repo/https---packagist.org/packages.json into cache\r\nUpdating dependencies (including require-dev)\r\nDownloading http://packagist.org/p/provider-2013%24a5524abc639838848fa3566204cf4dc193ea35b92eb70ec74d759287a6e04a4b.json\r\nDownloading http://packagist.org/p/provider-2013%24a5524abc639838848fa3566204cf4dc193ea35b92eb70ec74d759287a6e04a4b.json\r\nDownloading http://packagist.org/p/provider-2013%24a5524abc639838848fa3566204cf4dc193ea35b92eb70ec74d759287a6e04a4b.json\r\n\r\n\r\n  [Composer\\Downloader\\TransportException]\r\n  Content-Length mismatch\r\n\r\n\r\nException trace:\r\n () at phar:///usr/bin/composer.phar/src/Composer/Util/RemoteFilesystem.php:282\r\n Composer\\Util\\RemoteFilesystem->get() at phar:///usr/bin/composer.phar/src/Composer/Util/RemoteFilesystem.php:99\r\n Composer\\Util\\RemoteFilesystem->getContents() at phar:///usr/bin/composer.phar/src/Composer/Repository/ComposerRepository.php:645\r\n Composer\\Repository\\ComposerRepository->fetchFile() at phar:///usr/bin/composer.phar/src/Composer/Repository/ComposerRepository.php:558\r\n Composer\\Repository\\ComposerRepository->loadProviderListings() at phar:///usr/bin/composer.phar/src/Composer/Repository/ComposerRepository.php:289\r\n Composer\\Repository\\ComposerRepository->whatProvides() at phar:///usr/bin/composer.phar/src/Composer/DependencyResolver/Pool.php:204\r\n Composer\\DependencyResolver\\Pool->computeWhatProvides() at phar:///usr/bin/composer.phar/src/Composer/DependencyResolver/Pool.php:193\r\n Composer\\DependencyResolver\\Pool->whatProvides() at phar:///usr/bin/composer.phar/src/Composer/Installer.php:841\r\n Composer\\Installer->processDevPackages() at phar:///usr/bin/composer.phar/src/Composer/Installer.php:492\r\n Composer\\Installer->doInstall() at phar:///usr/bin/composer.phar/src/Composer/Installer.php:228\r\n Composer\\Installer->run() at phar:///usr/bin/composer.phar/src/Composer/Command/UpdateCommand.php:173\r\n Composer\\Command\\UpdateCommand->execute() at phar:///usr/bin/composer.phar/vendor/symfony/console/Command/Command.php:259\r\n Symfony\\Component\\Console\\Command\\Command->run() at phar:///usr/bin/composer.phar/vendor/symfony/console/Application.php:844\r\n Symfony\\Component\\Console\\Application->doRunCommand() at phar:///usr/bin/composer.phar/vendor/symfony/console/Application.php:192\r\n Symfony\\Component\\Console\\Application->doRun() at phar:///usr/bin/composer.phar/src/Composer/Console/Application.php:181\r\n Composer\\Console\\Application->doRun() at phar:///usr/bin/composer.phar/vendor/symfony/console/Application.php:123\r\n Symfony\\Component\\Console\\Application->run() at phar:///usr/bin/composer.phar/src/Composer/Console/Application.php:99\r\n Composer\\Console\\Application->run() at phar:///usr/bin/composer.phar/bin/composer:43\r\n require() at /usr/bin/composer.phar:24\r\n\r\nupdate [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...\r\n\r\n```\r\n\r\nAnd I expected this to happen:\r\nThat the dependencies are updated.\r\n\r\nAfter I updated composer to version 1.0.1 I receive the error above. \r\nIf I downgrade the composer to 1.0.0 everything works fine.\r\n\r\nI already have tried to clear the cache.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/215951442","html_url":"https://github.com/composer/composer/issues/5218#issuecomment-215951442","issue_url":"https://api.github.com/repos/composer/composer/issues/5218","id":215951442,"user":{"login":"dzuelke","id":27900,"avatar_url":"https://avatars.githubusercontent.com/u/27900?v=3","gravatar_id":"","url":"https://api.github.com/users/dzuelke","html_url":"https://github.com/dzuelke","followers_url":"https://api.github.com/users/dzuelke/followers","following_url":"https://api.github.com/users/dzuelke/following{/other_user}","gists_url":"https://api.github.com/users/dzuelke/gists{/gist_id}","starred_url":"https://api.github.com/users/dzuelke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzuelke/subscriptions","organizations_url":"https://api.github.com/users/dzuelke/orgs","repos_url":"https://api.github.com/users/dzuelke/repos","events_url":"https://api.github.com/users/dzuelke/events{/privacy}","received_events_url":"https://api.github.com/users/dzuelke/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T10:15:28Z","updated_at":"2016-04-30T10:15:28Z","body":"That indicates either a very spotty connection, @zetta, or a man-in-the-middle (especially if you get HTTPS related warnings). Same with @bourdeau.\r\n\r\nAre you using custom non-packagist repositories?\r\n\r\nI suggested to @Seldaek that we could add verbose logging to the retry events that read out the `Content-Length` header value as well as the downloaded content size.\r\n"}}