g4rick
➜ magic git:(master) mix deps.get
19:29:12.008 [error] Task #PID<0.189.0> started from :hex_fetcher terminating
** (FunctionClauseError) no function clause matching in String.to_charlist/1
(elixir) lib/string.ex:2029: String.to_charlist(nil)
(hex) lib/hex/http/ssl.ex:56: Hex.HTTP.SSL.ssl_opts/1
(hex) lib/hex/http.ex:34: Hex.HTTP.build_http_opts/2
(hex) lib/hex/http.ex:9: Hex.HTTP.request/5
(hex) lib/hex/registry/server.ex:320: anonymous fn/3 in Hex.Registry.Server.prefetch_online/2
(elixir) lib/task/supervised.ex:88: Task.Supervised.do_apply/2
(elixir) lib/task/supervised.ex:38: Task.Supervised.reply/5
(stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
Function: #Function<16.115348921/0 in Hex.Registry.Server.prefetch_online/2>
Args: []
** (exit) exited in: GenServer.call(Hex.Registry.Server, {:versions, "hexpm", "poolboy"}, 60000)
** (EXIT) time out
(elixir) lib/gen_server.ex:834: GenServer.call/3
(hex) lib/hex/registry/server.ex:56: Hex.Registry.Server.versions/2
(hex) lib/hex/remote_converger.ex:419: Hex.RemoteConverger.verify_dep/3
(elixir) lib/enum.ex:743: anonymous fn/3 in Enum.each/2
(stdlib) lists.erl:1263: :lists.foldl/3
(elixir) lib/enum.ex:1915: Enum.each/2
(hex) lib/hex/remote_converger.ex:40: Hex.RemoteConverger.converge/2
(mix) lib/mix/dep/converger.ex:95: Mix.Dep.Converger.all/4
Elixir version is
Erlang/OTP 20 [erts-9.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
Elixir 1.6.4 (compiled with OTP 20)
Hex version is
Hex v0.18.1
And this is what I have down in iTerm2 use history
10181 gst
10182 docker build -t registry-hlj.helijia.com/gitlab_lego_elixir --build-arg mix_env=dev --build-arg branch=to-sky! .
10183 gst
10184 gd
10185 gst
10186 gco .
10187 gst
10188 docker build -t registry-hlj.helijia.com/gitlab_lego_elixir --build-arg mix_env=dev --build-arg branch=to-sky! .
10189 tig
10190 registry-hlj.helijia.com/gitlab_lego_elixir
10191 ssh registry-hlj.helijia.com
10192 docker build -t registry-hlj.helijia.com/gitlab_lego_elixir --build-arg mix_env=dev --build-arg branch=to-sky! .
10193 mix hex.organization key acme
10194 mix hex.organization key helijia
10195 mix hex.organization list
10196 mix hex.organization key helijia list
10197 mix hex.organization key helijia generate
10198 docker build -t registry-hlj.helijia.com/gitlab_lego_elixir --build-arg mix_env=dev --build-arg branch=to-sky! .
10199 mix deps.get
I don’t know what going on… and have no idea how and why it happen?
Someone know it?
Thanks.
Trending in Questions
I having some trouble figuring out if I have set myself too strict of standards for my production server. Currently I can handle 75% of r...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
Hello,
I’m trying to build a basic Phoenix web-app, and I’d like to use Tailwind.
However, when I launch mix phx.server, I get an error...
New
Hi everyone,
I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding.
I sta...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
I’m working on a small exercise involving update_in/3, and I came up with this solution:
data = %{
name: "Periodic Table",
category:...
New
I’ve got trouble wrapping my head around the order in which functions are called in this snippet (from Phoenix’s authentication):
toke...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
A little off-topic, but I feel like people here have a good head on their shoulders.
I used to be quite good at making software. Was luc...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ai
- #ecto-query
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #elixirconf-eu
- #api
- #forms
- #metaprogramming
- #hex










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
ericmj
Can you show your
Dockerfile? It is possible you have to force rebuild your Docker image so that it fetches the latest Hex version, if you addmix hex.infoto theDockerfileyou can verify that it uses the latest Hex version 0.18.1.g4rick
Yes, thanks for help. I can’t edit my question (first time use this). Here’s my DockerFile.
ericmj
Please verify that you are using the latest hex version with
mix hex.info. I see that you are using a mirror when installing hex, maybe it is slow to refresh?g4rick
Yes, I’m sure I use the latest version. Before this error I just update hex with
mix hex.local.Then the version is
wojtekmach
just a wild guess, is this output from inside docker container or your local computer? Because your docker file says
FROM registry-hlj.helijia.com/hlj-elixir:1.6.4, but above is 1.6.5g4rick
There is something may help.
I got this error in the branch with Dockerfile, Then check out to master branch
deps.getstill got error.But when I change to another phoenix project,
deps.getworks.I back home, use another computer (also use latest hex) , no error. This computed has no access to registry-hlj.helijia.com so I can’t try
build docker.And I try
rm -rfthe project then clone it again. Not work.g4rick
From my local computer, since the error is on local computer.
g4rick
The
trace.txtfile afterelixir -e ":inets_trace.enable(:max, 'trace.txt', :httpc)" -S mix deps.getericmj
It is possible that you use a version manager such as
asdf? If that’s the case it could switch between Elixir versions and you would get another installed Hex version. This might be the case because the output you have shown shows different Elixir versions (1.6.4 and 1.6.5). Runmix local.hexagain in the project where you see the crash to ensure you have the latest Hex version installed for the Elixir version your project uses.g4rick
Very sorry for misleading.
I’m not use
asdfor other version manager. 1.6.4 elixir is my MBP from company and 1.6.5 is home MBP.Sorry…
Now I’m sure I use the 0.18.1 version of hex.
Is there some setting (httpc or other) bind up with project not branch or computer? Because as I mentioned before: same computer same environment phoenix project one
deps.getwork another can’t. And in the error project, I checkout branch to master it still error. I think this will be the only entry point I fix this.