Closed boomskats closed 6 months ago
Adding -o [org-id]
to axiom auth login
resolves this. Might be docs issue or user error, feel free to close.
Hi @boomskats, thanks for the in depth report. This is definitely not just a docs error, I'll take a look.
@boomskats I just pushed a new release, please give that a try :)
It gives me an error now. Not sure if this is expected behaviour looking at auth_login.go?
~ via πΉ v1.22.2 via ξ v20.11.1 on βοΈ (eu-west-2)
β― go install github.com/axiomhq/cli/cmd/axiom@latest
go: downloading github.com/axiomhq/cli v0.12.2
~ via πΉ v1.22.2 via ξ v20.11.1 on βοΈ (eu-west-2) took 3s
β― axiom auth login
? You need to login to Axiom. Should I open your default browser? Yes
Waiting for authentication...
β£·Error: missing organization id
~ via πΉ v1.22.2 via ξ v20.11.1 on βοΈ (eu-west-2) took 11s
β―
@boomskats Sorry for the inconvenience. Now you should be good with the latest release.
We're evolving our APIs and it turned out there was a slight hack in place in CLI to circumvent a shortcoming with the client library it uses (axiom-go
). I initially just dropped that as I thought it isn't required anymore with the new API but in reality, Axiom Go was causing the problem and was missing a slight detail when used with the new API.
Should be all good, now :)
Thanks again for your continuous reports <3
What happened
I just installed the cli and followed the basic initial steps to get going:
β― go install github.com/axiomhq/cli/cmd/axiom@latest
β― axiom auth login
The moment the oauth callback returned to localhost the CLI returned gave me a 404. Screenshot shows full context.
OS/versions