hex icon indicating copy to clipboard operation
hex copied to clipboard

Failing to fetch packages from organization

Open LostKobrakai opened this issue 11 months ago • 3 comments

❯❯ mix hex.search grid_packer
Organization  Package      Description                                            Version  URL                                     
madeit        grid_packer  Algorithms for packing elements onto a (2d) coordi...  0.2.0    https://hex.pm/packages/madeit/grid_packer
❯❯ mix hex.package fetch grid_packer --organization madeit --unpack 
** (Mix) No package with name grid_packer

* hex-2.1.1

LostKobrakai avatar Jan 25 '25 09:01 LostKobrakai

Can you fetch with mix deps.get? Fetching packages and searching packages uses different APIs and authentication mechanisms.

ericmj avatar Jan 25 '25 17:01 ericmj

mix deps.get works without issue

LostKobrakai avatar Jan 25 '25 19:01 LostKobrakai

I was able to fetch the packages I needed using hex_core. Still not really sure what's up with the mix task. I noticed :hex_api_package.get(config, "grid_packer") wasn't returning data till the end (404), but other functions started to work once I figured out the configuration.

I'll be closing this organization before the next renewal on the 26th. Happy to provide any more details around this till then.

LostKobrakai avatar Feb 10 '25 13:02 LostKobrakai