混合deps.get失败,{:failed_connect,[{:to_address,{'repo.hex.pm',443}},{:inet,[:inet],{:option,:server_only,:honor_cipher_order}}}}

dop*_*man 4 elixir-mix elixir hex-pm

我正在尝试获取我的elixir项目的依赖项。我无法确定Hex是否掉线(今天早上我可以很好地获取数据)。当我跑步

$ mix deps.get
Run Code Online (Sandbox Code Playgroud)

我看到了:

    Failed to fetch record for 'hexpm/phoenix_live_reload' from registry (using cache)
{:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet, [:inet], {:option, :server_only, :honor_cipher_order}}]}
    Failed to fetch record for 'hexpm/phoenix_ecto' from registry (using cache)
{:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet, [:inet], {:option, :server_only, :honor_cipher_order}}]}
    Failed to fetch record for 'hexpm/phoenix' from registry (using cache)
{:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet, [:inet], {:option, :server_only, :honor_cipher_order}}]}
    Failed to fetch record for 'hexpm/phoenix_pubsub' from registry (using cache)
{:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet, [:inet], {:option, :server_only, :honor_cipher_order}}]}
    Failed to fetch record for 'hexpm/postgrex' from registry (using cache)
{:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet, [:inet], {:option, :server_only, :honor_cipher_order}}]}
    Failed to fetch record for 'hexpm/ex_machina' from registry (using cache)
{:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet, [:inet], {:option, :server_only, :honor_cipher_order}}]}
    Failed to fetch record for 'hexpm/jason' from registry (using cache)
{:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet, [:inet], {:option, :server_only, :honor_cipher_order}}]}
Run Code Online (Sandbox Code Playgroud)

对于每个依赖项,依此类推。什么:no_honor_cipher意思 我是在做错什么还是Hex down?

小智 10

我遇到了同样的错误,对我来说@legoscia的建议奏效了:用 mix local.hex


teh*_*sor 1

这看起来像是 Hackney 中的一个错误,已在 Erlang 22.1 的 master 中修复,并且在 Hex 中从版本固定问题中显示出来......我会确保您的mix.exs文件具有正确的(最新)版本的依赖项需要(如 LiveView)或降级到 Erlang 版本而不是 22.1,直到更新您的依赖项。

这看起来是问题的根源:

https://github.com/benoitc/hackney/issues/591