Skip to content

Instantly share code, notes, and snippets.

@mchelen
Last active April 26, 2016 21:17
Show Gist options
  • Save mchelen/b8e6c27dbeb11935b86c0456e5e94d05 to your computer and use it in GitHub Desktop.
Save mchelen/b8e6c27dbeb11935b86c0456e5e94d05 to your computer and use it in GitHub Desktop.
The "https://packagist.org/packages.json" file could not be downloaded (HTTP/1.1 503 Service Unavailable)
Exception trace:
() at phar:///home/xubuntu/composer.phar/src/Composer/Util/RemoteFilesystem.php:343
Composer\Util\RemoteFilesystem->get() at phar:///home/xubuntu/composer.phar/src/Composer/Util/RemoteFilesystem.php:99
Composer\Util\RemoteFilesystem->getContents() at phar:///home/xubuntu/composer.phar/src/Composer/Repository/ComposerRepository.php:645
Composer\Repository\ComposerRepository->fetchFile() at phar:///home/xubuntu/composer.phar/src/Composer/Repository/ComposerRepository.php:462
Composer\Repository\ComposerRepository->loadRootServerFile() at phar:///home/xubuntu/composer.phar/src/Composer/Repository/ComposerRepository.php:256
Composer\Repository\ComposerRepository->hasProviders() at phar:///home/xubuntu/composer.phar/src/Composer/DependencyResolver/Pool.php:99
Composer\DependencyResolver\Pool->addRepository() at phar:///home/xubuntu/composer.phar/src/Composer/Installer.php:402
Composer\Installer->doInstall() at phar:///home/xubuntu/composer.phar/src/Composer/Installer.php:228
Composer\Installer->run() at phar:///home/xubuntu/composer.phar/src/Composer/Command/InstallCommand.php:134
Composer\Command\InstallCommand->execute() at phar:///home/xubuntu/composer.phar/vendor/symfony/console/Command/Command.php:259
Symfony\Component\Console\Command\Command->run() at phar:///home/xubuntu/composer.phar/vendor/symfony/console/Application.php:844
Symfony\Component\Console\Application->doRunCommand() at phar:///home/xubuntu/composer.phar/vendor/symfony/console/Application.php:192
Symfony\Component\Console\Application->doRun() at phar:///home/xubuntu/composer.phar/src/Composer/Console/Application.php:189
Composer\Console\Application->doRun() at phar:///home/xubuntu/composer.phar/vendor/symfony/console/Application.php:123
Symfony\Component\Console\Application->run() at phar:///home/xubuntu/composer.phar/src/Composer/Console/Application.php:99
Composer\Console\Application->run() at phar:///home/xubuntu/composer.phar/bin/composer:43
require() at /home/xubuntu/composer.phar:24
@mchelen
Copy link
Author

mchelen commented Apr 26, 2016

Solution:
export HTTPS_PROXY_REQUEST_FULLURI=0
composer install --prefer-source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment