-
Notifications
You must be signed in to change notification settings - Fork 26
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
CLI gives 403 on MacOS when given valid credentials #150
Comments
Hello @larsyencken and thanks for your report, In both case, are you passing the Algolia credentials to the CLI through the flags ( |
I change |
I'm getting the same thing from a "just brew installed algolia-cli", and from building from source here:
my ~/.config/algolia/config.toml file only has is there something I can do quickly to debug, or should I start reading the code? I do get the same issue when I use the two cli params, and the same values work fine for some go code i've been using for other purposes. |
I started debugging this, and may be running into a combination of an env var being set, and that error not telling me enough to realise it ...
mmm, I didn't realise / know that the API key in the config file was being over-ridden from the env, and thus didn't realise the env vars were pointing to a different Algolia env, and so the config defaul env was then using the other env's API key... ideally, the error message should be able to give some hints to the Algolia env and Key that is failing - I'll keep looking at the code tho :) (commenting out the env var bits helps it work for me) or perhaps just having a verbose mode that tells the user that the env var value is over-riding the value in the config? |
Problem
On my Mac the CLI fails with 403
Invalid Application-ID or API key
when doingalgolia indices list
, or most operations, when given correct credentials.The credentials were verified on a comparison Linux system (Ubuntu 22.04.04 LTS amd64) with identical Algolia CLI release version and everything worked smoothly.
Params
Side notes
algolia profile list
works and correctly lists the number of indices alongside the credentialsThe text was updated successfully, but these errors were encountered: