-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"cannot decode" error for all commands #207
Comments
Hi!
Can you double check and report back here? Cheers! |
Thanks for the tip, but unfortunately changing the URL gives the same result: By the way, this is where I got the original URL. |
That is interesting. I just re-ran a couple of tests for our API and that worked flawlessly. I'll investigate further...
Duh! Thanks for letting us know! /cc @thecraftman Can you update our docs? @cdjames Could you back up any config files or env vars and start from a blank state? How does running |
I'm able to run commands after I manually login using I think I figured it out; after I added the "active_deployment" line to my active_deployment = "axiom"
[deployments]
[deployments.axiom]
url = "https://api.axiom.co/"
token = "xapt-XXXX"
org_id = "clavis-vsr2" |
Remember you only need to be logged in once as the credentials are persisted in I think you stumbled across a bug here: If CLI is explicitly configured via the environment, the I'll leave this issue open as there are definitely some takeaways from this. |
thanks @cdjames i will update the docs and get this issue fixed. |
@cdjames I just double checked some of your reports and I wonder: It sounds like you had a I'll make sure docs get updated. |
@thecraftman Do you think we should get rid of the Sessions section? https://axiom.co/docs/reference/cli#session-support. I think it is a bit confusing. Most people won't use more than one deployment. Switching between orgs is possible via We should probably highlight that a good starting point is logging in via CLI ( IMHO, the config file shouldn't be documented explicitly as it isn't intended to be edited manually for nearly all use cases. |
@lukasmalkmus yeah awesome we need to specify that in the docs, and when to work with the active deployments per session support specifying |
thanks @cdjames a fix for this is on the way. |
@lukasmalkmus This is what I see if I get rid of the deployment file and try a command Then if I replace the deployment file, the command works: The token is the same in both cases. |
@cdjames Ah I see. Should have been more specific: You should be able to run all other commands, e.g.
|
@cdjames thanks the documentation for this has been updated here: https://axiom.co/docs/reference/cli |
Feel free to re-open or add a new issue if you have more questions, as the original |
All commands are failing with error "cannot decode response with unknown content type". Installed with
brew install axiom
~/.zprofile:
Shell: zsh
OS: macOS 12.7.2
Go version: go1.21.6 darwin/arm64
Brew version: 4.2.5
Axiom CLI version: 0.12.0 (revision: c70256c)
The text was updated successfully, but these errors were encountered: