#henry_90735

1 messages · Page 1 of 1 (latest)

strange oreBOT
fading silo
#

That's because you were still using the test mode API key when creating the request

tall kernel
#

Hi, i see that u have to add the flag --live i tried that too but am getting this issue

The provided key 'rk_live_*********************************************************************************************624NC6' does not have the required permissions for this endpoint on account 'acct_1IkmB5DCgU75ZiBU'. Please use a different key to perform this action.

#

Would adding the flag be sufficient?

fading silo
tall kernel
#

so listening to the api key would bypass the test mode and i can resend live events assumingly?

fading silo
#

I mean pass your live key through the --api-key flag if you want o create requests on live mode

tall kernel
#

Hi i actually did that and got this fatal error that prompt me to navigate to login instead which i had tried initially

For security reasons, the Stripe CLI only permits the use of restricted keys when in live mode. To generate restricted keys for use in live mode, use the stripe login command.

fading silo
#

Show me the command

tall kernel
#

stripe listen --api-key sk_liv...

#

so i place my live key after the command

fading silo
#

I thought you want to resend events? no?

tall kernel
#

Yes i want to resend live events sorry if its confusing but the command i saw provided was to listen but it prompted a error instead

#

or did u meant by using stripe login --api-key sk_l..

fading silo
#

Then I don't understand why you are using lsiten command when you want to resed events

tall kernel
#

oh ur asking me to resend the event but add the global flag --api-key ?

fading silo
#

stripe events resend <event_id> --api-key=YOUR_LIVE_API_KEY

tall kernel
#

Hi jack thank you for your help. I tried that but i had to add my webhook-endpoint and corresponding id for it to resend but all is good. Putting it here so some1 else who has similar issue may be able to find it here 🙂