#henry_90735
1 messages · Page 1 of 1 (latest)
That's because you were still using the test mode API key when creating the request
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?
https://stripe.com/docs/cli/api_keys#stripe_api_keys I'd suggest you use the --api-key flag instead.
so listening to the api key would bypass the test mode and i can resend live events assumingly?
I mean pass your live key through the --api-key flag if you want o create requests on live mode
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.
Show me the command
I thought you want to resend events? no?
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..
Then I don't understand why you are using lsiten command when you want to resed events
https://stripe.com/docs/cli/events/resend#events_resend this is the command for resend
oh ur asking me to resend the event but add the global flag --api-key ?
stripe events resend <event_id> --api-key=YOUR_LIVE_API_KEY
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 🙂