#uziiuzair_cli-resend
1 messages ¡ Page 1 of 1 (latest)
đ 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/1233516644257497230
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- uziiuzair_webhook-endpoint-events, 1 hour ago, 15 messages
I think you need to actually pass the api key: https://docs.stripe.com/cli/flags#flags-api_key
And you need to pass the webhook endpoint: https://docs.stripe.com/cli/events/resend#events_resend-webhook-endpoint
Let me give that a shot, I'll message back shortly.
uziiuzair_cli-resend
This worked flawlessly.
However I feel like this should not be the only method for sending live CLI requests.
The description for --api-key is "Use the Stripe account associated with this Stripe API secret key" which I have interpreted to mean that if you're working with multiple Stripe accounts, you can associate your call with a certain account with a Secret Key you generate for that account.
The documentation for stripe events resend provide a flag called --live which in my opinion should work without needing to pass an additional Secret Key.
The description for --live is as follows: "Make a live request (by default, runs in test mode).": https://docs.stripe.com/cli/events/resend#events_resend-live
Is this by design? :/
Yes it's by design. This specific command is really special and requires your real API key for now and doesn't work for the default key used by the CLI
I see, In that case, --live flag is redundant, because I was able to make a live call using the Secret Key and excluding the --live flag.
$ stripe events resend evt_1P9hYRI35eK3t0ZsEU0vEXv3 -api-key=sk_live_******** --webhook-endpoint=we_1P9tlxI35eK3t0Zs0lfuuUzw { "id": "evt_1P9***********************", "object": "event", "api_version": "2023-10-16", ........ }
yeah we might want to fix this
Yes, I suppose.
Thank you for the help though! I super appreciate it.
sure thing, glad you figured it out!
P.s. while I still have this thread opened. That error message from Stripe CLI is very vague. I actually have no idea what it's talking about
No directory provided for file keyring