K
K
KeyDel2017-07-20 21:49:55
Windows
KeyDel, 2017-07-20 21:49:55

Composer is unable to establish a connection to download packagist. How to overcome?

Win 8.1 system, Open Server , no proxy - when executing the composer diagnose command , when executing the Checking http connectivity to packagist: , Checking https connectivity to packagist: and Checking composer version: items , an error is displayed in the console:

WARNING
[Composer\Downloader\TransportException] The " https://packagist.org/packages.json " file could not be downloaded: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time , or established connection failed because connected host has failed to respond.

Prompt solutions?
On the Internet, I mostly stumble upon a description of this problem, but related to proxy settings. But I don't have a proxy.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Zhurkin, 2017-07-20
@icCE

Well, there is clearly a problem with access to this file.
try it in poweshell with a curl request and see what you get in response.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question