#rutwikk-cli-live
1 messages · Page 1 of 1 (latest)
rutwikk-cli-live
Hey @tranquil whale did you properly configure the Live API key as documented in https://stripe.com/docs/cli/config ?
Yes, the config file looks exactly like the example
I tried following the prompts to log in (which generated new api keys and added to the config file), but that didn't work either. I also tried completely removing the config file and logging in. Still doesn't work
I get the prompt to login again
Says I haven't configured my API keys
Weird since things work fine without the live flag
when you do stripe config --list do you see the right account id and API keys set? Don't share any of those, just to know
Yes, I do
what's the account id?
acct_103PXK2pZ9LNiazX
hum
so look at the response of the config, you should see a Live API key that starts with rk_live_. Do not share it here though.
Can you try using that key like this ```
curl -X GET https://api.stripe.com/v1/account -u rk_live_123:
Don't forget the `:` at the end
I want to see if the key works
That seems to work. Even with the stripe cli, when I use the --api-key flag, I get a proper response
okay so something is wrong with the config itself
Maybe you have some global environment variable that overrides the settings?
Can you try stripe customers retrieve thisiskoopatesting123456 --live
I can then look up to see if the request ever reaches us
Just did it. Got the login prompt again
which version of the CLI are you on?
yeah let me upgrade I'm on an older one
looks like our production environment is a bit behind
(!) Livemode value found for the field 'live_mode_api_key' in your config file.
Livemode values from the config file will be redacted and will not be used.
stripe version 1.13.6```
I see this after the upgrade
do you see the same?
I did the first time I did it
but didn't pay attention to it
my bad, but does this mean that the stripe cli will no longer be able to access live resources?
not sure yet sorry, I'm asking internally
thank you
did you do a stripe login again? It works for me after I login
Then I don't know I'm sorry, I'd recommend writing in so that we can investigate further: https://support.stripe.com/contact
Will do. I wonder if it has to do with a mismatch between the versions I have locally vs the one that we are using in production