简体   繁体   English

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

[英]mix deps.get fails, {:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet, [:inet], {:option, :server_only, :honor_cipher_order}}]}

I'm trying to fetch dependencies for my elixir project.我正在尝试为我的 elixir 项目获取依赖项。 I can't tell if Hex is down or not (I was able to fetch just fine this morning).我无法判断 Hex 是否已关闭(我今天早上能够很好地获取)。 When I run当我跑

$ mix deps.get

I see this:我看到这个:

    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}}]}

And so on for every dependency.对于每个依赖项,依此类推。 What does :no_honor_cipher mean? :no_honor_cipher是什么意思? Am I doing something wrong or is Hex down?我做错了什么还是Hex down?

I faced the same error, for me the suggestion from @legoscia worked: update Hex with mix local.hex我遇到了同样的错误,对我来说,@legoscia 的建议奏效了:用mix local.hex更新 Hex

This looks like it's a bug in Hackney, that has been fixed in master, on Erlang 22.1, and in Hex shows up from version pinning problems... I'd make sure your mix.exs file has the correct ( newest ) versions of the dependencies it needs (like LiveView) or downgrade to a version of Erlang not 22.1 until your dependencies are updated.这看起来像是 Hackney 中的一个错误,已在 master 中修复,在 Erlang 22.1 上,并且在 Hex 中出现版本固定问题...我会确保您的mix.exs文件具有正确的(最新)版本它需要的依赖项(如 LiveView)或降级到 Erlang 而不是 22.1 的版本,直到您的依赖项更新。

This looks to be the root of the issue:这似乎是问题的根源:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM