"invalid API key" when publishing to hex.pm

Hey all!

I’m having some issues publishing a package to hex.pm.

Whenever I try to mix hex.publish to the public hex.pm repo I get invalid API key. I’ve tried deleting my local asdf install of Elixir and deleting the ~/.hex folder. I mix hex.user auth-ed a bunch as well. Not sure what’s going on.

does your output of mix hex.config look correct, e.g. proper URLs etc?

1 Like

Thanks for the pointer. I had an environment variable set that was interfering. Thanks a lot for the help!