axiomhq / cli

The power of Axiom on the command line.
https://axiom.co
MIT License
42 stars 11 forks source link

brew cli client cannot auth #250

Closed popey closed 1 month ago

popey commented 1 month ago

👋 Hello friends.

Given #230 is closed and about the go version, I decided to create a new issue rather than necro the old one. But I suspect it's the same or similar issue.

Installed cli via homebrew as per the README.md: brew install axiomhq/tap/axiom Tried to authenticate: axiom auth login

I logged in, in the browser. But it 404's.

I was already logged in, in another tab, where I created a dataset, so I know my account is fine.

? You need to login to Axiom. Should I open your default browser? Yes
Waiting for authentication...
⣻Error: API error 404: Not Found

I tried a few more times...

 ✘ alan@Alans-MacBook-Pro ~/Downloads $ axiom version
Axiom CLI, release 0.13.0 (revision: 3147c4a)
  build user:       goreleaser
  build date:       2024-06-12T15:31:42Z
  go version:       go1.22.4
 alan@Alans-MacBook-Pro  ~/Downloads $ axiom auth status
? This seems to be your first time running this CLI. Do you want to login to Axiom? Yes
? You need to login to Axiom. Should I open your default browser? Yes
Waiting for authentication...
â¡¿Error: API error 404: Not Found
Usage:
  login [(-a|--alias) <alias>] [(-o|--org-id) <organization-id>] [-f|--force]

Examples:
# Interactively authenticate against Axiom:
$ axiom auth login

# Provide parameters on the command-line:
$ echo $AXIOM_TOKEN | axiom auth login --alias="axiom-mycompany" --org-id="fancy-horse-1234" -f

Flags:
  -a, --alias string    Alias of the deployment
      --auto-login      Login through the Axiom UI (default true)
  -f, --force           Skip the confirmation prompt
  -h, --help            help for login
  -o, --org-id string   Organization ID

Error: API error 404: Not Found
 ✘ alan@Alans-MacBook-Pro  ~/Downloads $
echo $AXIOM_TOKEN | axiom auth login --alias="axiom-popey" --org-id="popey-towers-mmnk" -f
Error: API error 500: Internal Server Error

🥹

popey commented 1 month ago

Confirmed broken on the go build too:

~/go/bin/axiom version
Axiom CLI, release - (revision: -)
  build user:       -
  build date:       -
  go version:       go1.22.4
 alan@Alans-MacBook-Pro î‚° ~ î‚° ~/go/bin/axiom auth login
? You need to login to Axiom. Should I open your default browser? Yes
Waiting for authentication...
â¡¿Error: API error 404: Not Found
lukasmalkmus commented 1 month ago

Hey friend @popey 👋

Thanks for the report!

Now that our new API backend is fully rolled out, it looks like a regression :/

Can you test this pre-release? It works for me.

Cheers

popey commented 1 month ago

@lukasmalkmus, thanks for the quick response!

Yup, that works!

image
popey commented 1 month ago

I've had the pre-release CLI running for about 12 hours now. It's shipped nearly 10M rows, so that's working. Thanks again.

lukasmalkmus commented 1 month ago

Perfect, I tagged a non-rc release.

Sorry for the inconvenience and thanks for the report 🙌