elt547

elt547

I’m trying to fetch hex docs for local use. About to get on an airplane with no wifi. Lots of packages are not found though, and I’m not sure why.

I run mix hex.docs fetch elixir and I get the message Couldn't find docs for package with name elixir or version 1.13.3. Anyone have any idea what’s going on? There are several packages that this happens with.

Showing Posts 1 to 10

thomas.fortes

thomas.fortes

From the code of hex.docs it seems that this message shows up when the answer isn’t a 200

   case Hex.Repo.get_docs(repo, package, version) do
      {:ok, {200, body, _}} ->
        File.mkdir_p!(Path.dirname(target))
        File.write!(target, body)
        true

      _ ->
        message = "Couldn't find docs for package with name #{package} or version #{version}"
        Hex.Shell.error(message)
        false
    end

Maybe the network you’re connected is doing some kind of shenanigans with your connection.

elt547

elt547 OP

Thanks, thought that might be a possibility but ruled it out becasue others were downloaded without issue. Will try my cell connection and report back!

elt547

elt547 OP

Perfect, seems to be some weird shite with the airport network. Any idea why some would get fetched successfully and others wouldn’t?

thomas.fortes

thomas.fortes

My guess would be some kind of DNS spoofing associated with certain keywords, airports and hotels usually do this kind of **** to their connections.

yeroc

yeroc

Perhaps use your phone’s cellular network as a hotspot to bypass the airport network?

josevalim

josevalim

Creator of Elixir

Elixir is not a package, so you can’t fetch the docs like that. We may address this in the near future though.

Meanwhile you can download Elixir docs from its release page on GitHub.

thomas.fortes

thomas.fortes

~ ❯❯❯ mix hex.docs fetch elixir
Docs fetched: /home/tfortes/.hex/docs/hexpm/elixir/1.13.4

~/.h/d/h/e/1.13.4 ❯❯❯ ls | head -n 5
assets
dist
404.html
Access.html
Agent.html

Weird…

elt547

elt547 OP

I think it must’ve changed recently. The good news is that you CAN fetch the elixir docs like that! After I switched to my cellular connection it worked like a charm.

So slick, I’m glad we’ve got such a robust offering of tools in the elixir ecosystem! Even simple things like this make me excited for what’s to come.

josevalim

josevalim

Creator of Elixir

Ok, so please ignore me, I was clearly wrong :smiley:

Exadra37

Exadra37

As someone that works in security I strongly advise against the use of any WiFi that is not the one in your own home, because other devices connected to the same network can spread malware into other devices. And in your home WiFi you shouldn’t allow guests to connect to the same WiFi network as you, neither let any of your IoT stuff be connect to it.

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews