#zachm_api

1 messages ยท Page 1 of 1 (latest)

obtuse nacelleBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1435859120505884713

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

hearty jungle
#

Hey! do give me some time to take a look at this

#

Could i clarify if you receive an error when you try to run a live mode command?

solar ermine
#

No errors, just have to auth every time. And when I go to auth, it only lets me select testing or sandbox mode.

#

I want to be able to run live mode commands to read in my shell.

hearty jungle
#

Could you send me an example CLI command that you ran and was asked to authenticate

#

Do remember to remove any apiKeys or mask it (e.g. sk_test_xxx)

solar ermine
#

Absolutely anything with --live flag. For example, stripe subscriptions list --live

hearty jungle
#

You would have to specify this flag as well --api-key with the live mode or test mode secret key

solar ermine
#

What's the point of the --live flag then?

#

I don't want to have to be pasting a live api key into my terminal constantly, that is a major security concern.

hearty jungle
hearty jungle
solar ermine
hearty jungle
hearty jungle
solar ermine
solar ermine
#

Hello?

hearty jungle
#

hey! Yes upon checking the documentation and testing it out, --live flag, it is meant to make live requests

#

Was there a prompt to allow your terminal to access live mode api keys?

If you checked "Always allow", the prompt to re-authenticate would have stopped appearing

solar ermine
solar ermine
#

I can only select testing or sandbox when authenticating

hearty jungle
solar ermine
solar ermine
#

Or is there anyone else that has more knowledge around the stripe CLI that can help out here? @hearty jungle

hearty jungle
#

Hmmm, that is weird, could i get your account ID to investigate this further? (acct_xxx) I will also be roping my colleague in on this

solar ermine
solar ermine
solar ermine
#

@hearty jungle you still there?

hearty jungle
#

Yup, do give me some time, we are testing it out again on our end again

solar ermine
hearty jungle
#

Hey we just tested this out and realised that the โ€”-live flag only works when the CLI is authenticated with test mode, and will not work when it is authenticated with Sandbox mode.

#

Could you test this out on your end as well?

obtuse nacelleBOT
solar ermine
#

We never use sandbox

elder lion
#

Hey! Taking over for my colleague. Let me catch up.

#

Could you please clarify why you want to make live request with the stripe cli ?

#

Stripe CLI is just for tests and it's not reliable for live and production integration. You should be using Stripe SDKs in your production/live integration