#rutwikk-cli-live

1 messages · Page 1 of 1 (latest)

covert dockBOT
still bramble
#

rutwikk-cli-live

tranquil whale
#

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

still bramble
#

hum

#

what "doesn't work" mean?

tranquil whale
#

I get the prompt to login again

#

Says I haven't configured my API keys

#

Weird since things work fine without the live flag

still bramble
#

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

tranquil whale
#

Yes, I do

still bramble
#

what's the account id?

tranquil whale
#

acct_103PXK2pZ9LNiazX

still bramble
#

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

tranquil whale
#

That seems to work. Even with the stripe cli, when I use the --api-key flag, I get a proper response

still bramble
#

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

tranquil whale
#

Just did it. Got the login prompt again

still bramble
#

which version of the CLI are you on?

tranquil whale
#

1.13.6

#

hmm

#

that might be a lead

still bramble
#

yeah let me upgrade I'm on an older one

tranquil whale
#

looks like our production environment is a bit behind

still bramble
#

(!) 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?

tranquil whale
#

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?

still bramble
#

not sure yet sorry, I'm asking internally

tranquil whale
#

thank you

still bramble
#

did you do a stripe login again? It works for me after I login

tranquil whale
#

will give that a shot

#

does not work

#

still asks me to log in

still bramble
tranquil whale
#

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