Sinc
Hex.Application error trying to run mix deps.get
I tried to run mix deps.get and get this error:
11:33:16.611 \[error\] Task #PID<0.335.0> started from :hex_fetcher terminating
\*\* (SyntaxError) nofile:12:41: unexpected token: }
|
12 | oauth_exchange => true},
| ^
(elixir 1.14.5) lib/code.ex:424: Code.validated_eval_string/3
(hex 2.5.0) lib/hex/config.ex:138: Hex.Config.decode_elixir/1
(hex 2.5.0) lib/hex/config.ex:12: Hex.Config.read/0
(hex 2.5.0) lib/hex/config.ex:64: Hex.Config.update/1
(hex 2.5.0) lib/hex/config.ex:161: Hex.Config.update_repos/1
(hex 2.5.0) lib/hex/auth.ex:110: Hex.Auth.persist_oauth_tokens/4
(hex 2.5.0) src/mix_hex_cli_auth.erl:567: :mix_hex_cli_auth.exchange_for_oauth_token/4
Function: #Function<32.44801239/0 in Hex.Registry.Server.prefetch_online/2>
Args: [ ]
Since I only upgraded to local.hex 2.5.0 last week I tried downgrading. SImilar problem. Found that there is a 2.5.1 which sounds like an emergency upissue so tried that. Same prblem. ANy idea what’s going on? I don’t expect this is me, but tell me if there is a workaround?
p.s. I don’t seem to be able to insert a code block with triple ticks. As soon as I type the third one this window hangs. Tried it about three times in different ways before abandoning hope.
mix deps.get
12:45:09.090 \[notice\] Application hex exited: Hex.Application.start(:normal, [ ]) returned an error: shutdown: failed to start child: Hex.State
\*\* (EXIT) an exception was raised:
\*\* (SyntaxError) nofile:12:41: unexpected token: }
|
12 | oauth_exchange => true},
| ^
(elixir 1.14.5) lib/code.ex:424: Code.validated_eval_string/3
(hex 2.5.1) lib/hex/config.ex:138: Hex.Config.decode_elixir/1
(hex 2.5.1) lib/hex/config.ex:12: Hex.Config.read/0
(hex 2.5.1) lib/hex/state.ex:170: Hex.State.start_link/1
(stdlib 5.2.3) supervisor.erl:420: :supervisor.do_start_child_i/3
(stdlib 5.2.3) supervisor.erl:406: :supervisor.do_start_child/2
(stdlib 5.2.3) supervisor.erl:390: anonymous fn/3 in :supervisor.start_children/2
12:45:09.108 \[notice\] Application inets exited: :stopped
12:45:09.110 \[notice\] Application ssl exited: :stopped
12:45:09.110 \[notice\] Application public_key exited: :stopped
12:45:09.110 \[notice\] Application asn1 exited: :stopped
12:45:09.110 \[notice\] Application crypto exited: :stopped
Could not start Hex. Try fetching a new version with "mix local.hex" or uninstalling it with "mix archive.uninstall hex.ez"
\*\* (MatchError) no match of right hand side value: {:error, {:hex, {{:shutdown, {:failed_to_start_child, Hex.State, {:EXIT, {%SyntaxError{file: "nofile", line: 12, column: 41, snippet: %{offset: 40, content: " oauth_exchange => true},"}, description: "unexpected token: }"}, \[{Code, :validated_eval_string, 3, \[file: 'lib/code.ex', line: 424\]}, {Hex.Config, :decode_elixir, 1, \[file: 'lib/hex/config.ex', line: 138\]}, {Hex.Config, :read, 0, \[file: 'lib/hex/config.ex', line: 12\]}, {Hex.State, :start_link, 1, \[file: 'lib/hex/state.ex', line: 170\]}, {:supervisor, :do_start_child_i, 3, \[file: 'supervisor.erl', line: 420\]}, {:supervisor, :do_start_child, 2, \[file: 'supervisor.erl', line: 406\]}, {:supervisor, :"-start_children/2-fun-0-", 3, \[file: 'supervisor.erl', line: 390\]}\]}}}}, {Hex.Application, :start, \[:normal, [ ]\]}}}}
(hex 2.5.1) lib/hex.ex:5: Hex.start/0
(mix 1.14.5) lib/mix/hex.ex:59: Mix.Hex.start/0
(mix 1.14.5) lib/mix/dep/loader.ex:188: Mix.Dep.Loader.with_scm_and_app/4
(mix 1.14.5) lib/mix/dep/loader.ex:141: Mix.Dep.Loader.to_dep/3
(elixir 1.14.5) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
(elixir 1.14.5) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
(mix 1.14.5) lib/mix/dep/loader.ex:358: Mix.Dep.Loader.mix_children/2
(mix 1.14.5) lib/mix/dep/loader.ex:18: Mix.Dep.Loader.children/0
Most Liked
netoum
Have you tried deleting ~/.hex/hex.config ?
I would also uninstall the hex archive and reinstall it after deleting the config.
Please note that you will loose any previously connected hex account and will need to authenticate to hex again
1
Popular in Troubleshooting
I tried to run mix deps.get and get this error:
11:33:16.611 \[error\] Task #PID<0.335.0> started from :hex_fetcher terminating
\*...
New
Hello everyone.
I’m the author of GitHub - bugnano/wtransport-elixir: Elixir bindings for the WTransport WebTransport library · GitHub ,...
New
Summary
A downstream job that deps on a graft correctly waits for the grafted jobs at one graft level, but stops waiting when the workflo...
New
Environment
Elixir 1.18.3-otp-27 / OTP 27.3.4
Oban 2.20.2
Phoenix 1.7.x
db_connection 2.8.1 / Postgrex 0.21.1
Infrastructure: Google Cl...
New
Having read the book, I’m keen to explore Ash a bit more, but I’m falling at the first hurdle - the creation of a new project.
Here’s my...
New
Environment
Oban Pro: 1.7.6
Oban: 2.22.1
Issue
When a sub-workflow built with Workflow.put_context/2 is attached to a parent via ...
New
Hello, I am currently using Elixir 1.18.4 and OTP 27 with Linux Mint 22.3 - Cinnamon 64-bit as my operating system. I came across this er...
New
We recently started running Oban with Oban Web on PostgreSQL (AWS RDS gp3) and noticed our oban_jobs buffer cache hit ratio sitting at 65...
New
Experienced programmer writer her first Elixir, and maybe bit off more than she can chew?
I’m trying to start two GenServers, where the ...
New
I have three modules, a Business which is associated Tags and Categories though join tables business_tags and business_categories. I inte...
New
Other popular topics
Hi All,
I set a environment variables in dev.exs , like below code.
when i start server, how can i set the ${enable} value?
thanks.
d...
New
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode.
The solution seems to be, in a hyphena...
New
After calling mix ecto.create I get this error:
17:00:32.162 [error] GenServer #PID<0.412.0> terminating
** (Postgrex.Error) FATAL...
New
Hello, how can I check the Phoenix version ?
Thanks !
New
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
New
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors:
[WARN] - (starship::utils): Executing command ...
New
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including.
What is Phoenix LiveV...
New
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









