b3k
Unable to fetch anything from repo.hex.pm using mix
Hi,
I’m unable to fetch anything from Hex using mix commands like deps.update --all or local.rebar or local.hex.
I was trying in 2 different machines using 2 different ISP. There is no special firewalls or network traffic rules.
MIX_DEBUG=1 mix local.hex
** Running mix loadconfig
** Running mix local.hex
** (Mix.Error) httpc request failed with: {:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet6, [:inet6], :exbadport}, {:inet, [:inet], :exbadport}]}
Could not install Hex because Mix could not download metadata at https://repo.hex.pm/installs/hex-1.x.csv.
(mix) lib/mix.ex:323: Mix.raise/1
(mix) lib/mix/local.ex:126: Mix.Local.find_matching_versions_from_signed_csv!/2
(mix) lib/mix/tasks/local.hex.ex:56: Mix.Tasks.Local.Hex.run_install/1
(mix) lib/mix/task.ex:316: Mix.Task.run_task/3
(mix) lib/mix/cli.ex:79: Mix.CLI.run_task/2
Interesting is fact that Im able to fetch https://repo.hex.pm/installs/hex-1.x.csv using curl or wget.
curl -v https://repo.hex.pm/installs/rebar-1.x.csv
> GET /installs/rebar-1.x.csv HTTP/1.1
> User-Agent: curl/7.37.0
> Host: repo.hex.pm
> Accept: */*
>
< HTTP/1.1 200 OK
< x-amz-id-2: vk8k7xdwkwLtPazsR66r21IYVcE6xJRJw5iBWCkwSyHA23wF075MYnD7xhWODXqd1/jq4oZWCE8=
< x-amz-request-id: 685B5A63315298EA
< x-amz-replication-status: COMPLETED
< Last-Modified: Tue, 28 Jun 2016 23:59:12 GMT
< ETag: "a5e57ed81098cf777bc319d6118eff50"
< Cache-Control: public, max-age=604800
< x-amz-meta-surrogate-key: installs
< x-amz-version-id: _0bG9Pxir6pB8zBlmt_v1mDuB_StPz9A
< Content-Type: text/csv
* Server AmazonS3 is not blacklisted
< Server: AmazonS3
< Content-Length: 282
< Accept-Ranges: bytes
< Date: Mon, 11 Feb 2019 20:20:47 GMT
< Via: 1.1 varnish
< Age: 512838
< Connection: keep-alive
< X-Served-By: cache-iad2136-IAD, cache-ams21020-AMS
< X-Cache: HIT, HIT
< X-Cache-Hits: 1, 4
< X-Timer: S1549916448.747493,VS0,VE0
<
2.6.2,ff1c5ddfce1fcfd73fd65b8bfc0ff1c13aefc2e98921d528cbc1f35e86c9caa1c9c4e848b9ce6404d9a81c50cfcf0e45dd0dddb23cd42708664c41fce6618900,1.0.0
2.6.2,ff1c5ddfce1fcfd73fd65b8bfc0ff1c13aefc2e98921d528cbc1f35e86c9caa1c9c4e848b9ce6404d9a81c50cfcf0e45dd0dddb23cd42708664c41fce6618900,1.0.0
* Connection #0 to host repo.hex.pm left intact
Versions dump:
elixir --version
Erlang/OTP 21 [erts-10.2.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]
Elixir 1.7.4 (compiled with Erlang/OTP 21)
mix --version
Erlang/OTP 21 [erts-10.2.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]
Mix 1.7.4 (compiled with Erlang/OTP 21)
Most Liked
Eiji
Just one thing to note. Following:
You should try to call: curl -g -6 -v https://repo.hex.pm/installs/rebar-1.x.csv as your original command is using IPv4 by default and mix is trying to use IPv6 .
4
Popular in Questions
Hello, I get Persian date from my client and convert it to normal calendar like this:
def jalali_string_to_miladi_english_number(persi...
New
Credo is smart enough to check for (something like) this:
assert length(the_list) == 0
with this response:
Checking if an enum is empt...
New
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
I have an umbrella app.
Some of the apps inside depend on other apps in the umbrella, unsurprisingly.
I'm writing a test for one of t...
New
Hi there, I'm working through my first release with elixir/phoenix. I've built a release with distillery and found that it crashes when I...
New
The Elixir Typespec docs show the following syntax for keyword lists in typespecs:
# ...
| [key: type] # keyword lis...
New
Could someone help me? I'm making my first elixir program, number guessing game. I can't figure out how to convert the user's guess from ...
New
I’m currently trying to understand how to join three tables using Ecto. All the examples I’ve seen use 2, so maybe I’m just missing somet...
New
Hi all
I want to have a unix time, from the current time plus 1 hour.
DateTime.now + 1 hour
How to get it in elixir?
Thanks
New
Can someone explain the settings of pool_size of Ecto in config file? and what is the recommend size?
Thanks
New
Other popular topics
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service.
Currently when I de...
New
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set?
Thanks.
New
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
Hi all,
I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage.
I'm trying to use Postg...
New
I will often find my self writing things similar to:
case some_value do
nil -> something()
"" -> something()
_ -> someth...
New
by Lance Halvorsen
Elixir and Phoenix are generating tremendous excitement as an unbeatable platform for building modern web application...
New
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New







