#ashish_webhooks
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/1296560255731499171
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐ you'll want to use the Stripe CLI for that. The stripe events resend endpoint accepts a --webhook-endpoint option that can be used to control what endpoint the Event is sent to during the resend:
https://docs.stripe.com/cli/events/resend#events_resend-webhook-endpoint
Any other way without the cli?
Not that I'm readily aware of
Want to share what that error is? And what you mean when you say you're trying to open stripe.exe?
Are you stepping through this guide for installing and logging into the cli?
https://docs.stripe.com/stripe-cli
Nevermind solved it
I was, but i had to go to the directory it was installed and then run the command
Ah gotcha, sounds like it wasn't getting added to your global path or the terminal wasn't picking up the path change.
Probably. Just to confirm, this would be the command right?
stripe events resend evt_1QAvn8AaUAsw03BSZ6GG99Uf --webhook-endpoints=we_1QAzWjAaUAsw03BSco40n1hl
Okay
tried it, but now i get this error: ```js
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such notification: 'evt_1QAvn8AaUAsw03BSZ6GG99Uf'; a similar object exists in live mode, but a test mode key was used to make this request.",
"param": "id",
"type": "invalid_request_error"
}
}
Ah, that's right, you'll also need to include the --live option to run the request in livemode
ah ic thanks
{
"error": {
"message": "The provided key 'rk_live_*********************************************************************************************KalwcF' does not have the required permissions for this endpoint on account 'acct_1P407cAaUAsw03BS'. Please use a different key to perform this action.",
"type": "invalid_request_error"
}
}
Hhmm, that I'm less sure about. Is there a string with an req_ prefix anywhere in what you're seeing?
That's the ID we use to identify requests on our end, which would let me take a closer look at what exactly was going on.
is that something im able to find somewhere? im not suree where i can obtain the key
No I don't think so. I think this is getting blocked before the request is given an ID, but I was hopeful I was mistaken.
oh
i think it's because the permissions are only set to read, let me try editing that
yup
that was it, it's working now
Oh nice! For my knowledge, how did you do that? Were you able to modify the restricted key in the dashboard?
Yup, I modified that key from the dashboard, changed almost everything to write, then it asked me for the verification code from my phone, I verified and applied the changes.
Gotcha, thanks for sharing that! Glad to hear you were able to get it working.