chrismccord / phoenix_haml

Phoenix Template Engine for Haml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

:failed_connect to_address s3.amazonaws.com nxdomain

notalex opened this issue · comments

commented

Hi,

I am trying to integrate haml in a phoenix app that I am building.

mix.lock:

%{"calliope": {:hex, :calliope, "0.2.8"},
  "coffee_rotor": {:hex, :coffee_rotor, "0.2.1"},
  "cowboy": {:hex, :cowboy, "1.0.0"},
  "cowlib": {:hex, :cowlib, "1.0.0"},
  "decimal": {:hex, :decimal, "0.2.5"},
  "ecto": {:hex, :ecto, "0.2.5"},
  "linguist": {:hex, :linguist, "0.1.2"},
  "phoenix": {:hex, :phoenix, "0.5.0"},
  "plug": {:hex, :plug, "0.8.2"},
  "poison": {:hex, :poison, "1.2.0"},
  "poolboy": {:hex, :poolboy, "1.2.1"},
  "postgrex": {:hex, :postgrex, "0.6.0"},
  "ranch": {:hex, :ranch, "1.0.0"},
  "rotor": {:hex, :rotor, "0.2.2"}}

I am trying to use phoenix_haml '~> 0.0.5', and I am getting the following error:

Registry update failed (http_error)
{:failed_connect, [{:to_address, {'s3.amazonaws.com', 443}}, {:inet, [:inet], :nxdomain}]}
Running dependency resolution
Unlocked:   phoenix_haml
** (Mix) Hex dependency resolution failed, relax the version requirements or unlock dependencies

Any help would be appreciated.

It's strange that phoenix_haml is not showing up in your mix.lock file at all. Can you show us how you are including it in the deps function in mix.exs?

I just added it to a test project I've been playing with. (I'm running the master branch of Phoenix, so I'm using the master branch of phoenix_haml.)

defp deps do
    [
      {:phoenix, github: "phoenixframework/phoenix"},
      {:cowboy, "~> 1.0"},
      {:postgrex, "0.6.0"},
      {:ecto, "0.2.5"},
      {:phoenix_haml, github: "chrismccord/phoenix_haml"},
    ]
  end

After running mix do deps.get, compile, this is what my mix.lock file looks like, with phoenix_haml showing up right after Phoenix.

%{"calliope": {:hex, :calliope, "0.2.8"},
  "cowboy": {:hex, :cowboy, "1.0.0"},
  "cowlib": {:hex, :cowlib, "1.0.0"},
  "decimal": {:hex, :decimal, "0.2.5"},
  "ecto": {:hex, :ecto, "0.2.5"},
  "linguist": {:hex, :linguist, "0.1.3"},
  "phoenix": {:git, "git://github.com/phoenixframework/phoenix.git", "5615dea0083994fb6a14faab6d9ce7cffcb7870e", []},
  "phoenix_haml": {:git, "git://github.com/chrismccord/phoenix_haml.git", "fa237f444e4dbff605165424ec367f0d7960f00c", []},
  "plug": {:hex, :plug, "0.8.2"},
  "poison": {:hex, :poison, "1.2.0"},
  "poolboy": {:hex, :poolboy, "1.2.1"},
  "postgrex": {:hex, :postgrex, "0.6.0"},
  "ranch": {:hex, :ranch, "1.0.0"}}
commented

phoenix_haml does not appear in mix.lock as it is not yet installed. The error appears during the mix do deps.get stage.

mix.exs:

[
  { :phoenix, "0.5.0" },
  { :cowboy, "~> 1.0" },
  { :ecto, "~> 0.2.0" },
  { :postgrex, ">= 0.0.0" },
  { :phoenix_haml, "~> 0.0.5" },
  { :calliope, ">= 0.2.7" },
  { :coffee_rotor, ">= 0.2.1", env: :dev },
]

I tried out the edge versions which worked. The stable versions may have a problem but it does not affect me anymore. Thanks.