Elixir: (Mix) httpc request failed with

Created on 11 Nov 2015  Â·  10Comments  Â·  Source: elixir-lang/elixir

when i try to use the mix to install the cowboy module, it always failed to like this.

i have searched for solution everywhere , but still have not found

hope you help, how to solve the problem

>mix deps.get
Could not find Hex, which is needed to build dependency :cowboy
Shall I install Hex? [Yn] y

** (Mix) httpc request failed with: {:failed_connect, [{:to_address, {'s3.amazonaws.com', 443}}, {:inet, [:inet], :closed}]}

Could not install Hex because Mix could not download metadata at https://s3.amazonaws.com/s3.hex.pm/installs/hex-1.x.csv.signed.

Most helpful comment

You can try using the southeast-asia mirror. After you install Hex, run this:

mix hex.config cdn_url https://s3-ap-southeast-1.amazonaws.com/s3-asia.hex.pm

Let me know how it goes!

All 10 comments

Can you please include Elixir and Erlang version? Just run iex. Also, let us know if the problem still persists and/or if you are running behind a proxy.

@josevalim no proxy, please see the below image:
screenshot from 2015-11-12 18 00 24

That's weird. For now, please try downloading directly: http://s3.amazonaws.com/s3.hex.pm/installs/1.1.0/hex-0.9.0.ez

And then run: mix local.install path/to/downloaded/hex-0.9.0.ez. Please make sure you are safely downloading the file in your browser.

enetunreach suggests a network issue on your end. Can you reach https://s3.amazonaws.com/s3.hex.pm/installs/hex-1.x.csv.signed in your browser?

@josevalim i have installed the hex-0.9.0.ez. but still have trouble to install the modules, is possible download them directly like "http://s3.amazonaws.com/s3.hex.pm/installs/1.1.0/hex-0.9.0.ez"? i'm from china , at here to reach "s3.amonzon.com" is always a problem.

You can try using the southeast-asia mirror. After you install Hex, run this:

mix hex.config cdn_url https://s3-ap-southeast-1.amazonaws.com/s3-asia.hex.pm

Let me know how it goes!

@josevalim thanks your very quick response, it was now working fine

@josevalim thanks, also worked for me.

That should be mix archive.install path/to/downloaded/hex-0.9.0.ez.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pragdave picture pragdave  Â·  28Comments

devonestes picture devonestes  Â·  33Comments

josevalim picture josevalim  Â·  42Comments

heiko-braun picture heiko-braun  Â·  27Comments

jakubpawlowicz picture jakubpawlowicz  Â·  32Comments