Задать вопрос
des1roer
@des1roer
ученье - свет, а неученье - приятный полумрак

Composer подключиться через proxy?

использую консоль OpenServer

прописываю прокси

set http_proxy=http://proxy.***.**:****/
set https_proxy=http://proxy.***.**:****/

при

composer self-update

получаю

[Composer\Downloader\TransportException] The "https://getcomposer.org/version" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
failed to open stream: Cannot connect to HTTPS server through proxy

настройки прокси правильные. что-то поменялось в политике защиты? что-то обновить нужно? ибо раньше так вполне себе работало

> composer diag
Warning: This development build of composer is over 60 days old. It is recommended to update it by running "d:\openserver\modules\php\PHP-5.4\composer.phar self-update" to get the latest version.
Checking composer.json: FAIL
require.yiisoft/yii2 : unbound version constraints (>=2.0.5) should be avoided
require.yiisoft/yii2-bootstrap : unbound version constraints (*) should be avoided
require.yiisoft/yii2-swiftmailer : unbound version constraints (*) should be avoided
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: FAIL
[Composer\Downloader\TransportException] The "packagist.org/packages.json" file could not be downloaded (HTTP/1.0 407 Proxy Authentication Required)
Checking https connectivity to packagist: FAIL
[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
failed to open stream: Cannot connect to HTTPS server through proxy
Checking HTTP proxy: FAIL
[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: Cannot connect to HTTPS server through proxy
Checking HTTP proxy support for request_fulluri: FAIL
It seems there is a problem with your proxy server, try setting the "HTTP_PROXY_REQUEST_FULLURI" and "HTTPS_PROXY_REQUEST_FULLURI" environment variables to "false"
Checking HTTPS proxy support for request_fulluri: FAIL
Unable to assess the situation, maybe github is down (The "https://api.github.com/repos/Seldaek/jsonlint/zipb..." file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
failed to open stream: Cannot connect to HTTPS server through proxy)
Checking github.com oauth access: FAIL
[Composer\Downloader\TransportException] The "https://api.github.com/user/repos" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
failed to open stream: Cannot connect to HTTPS server through proxy
Checking disk free space: OK
Checking composer version:

[Composer\Downloader\TransportException]
The "https://getcomposer.org/version" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
failed to open stream: Cannot connect to HTTPS server through proxy
  • Вопрос задан
  • 1857 просмотров
Подписаться 4 Оценить Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы