#jose-fernndez_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/1318203887081226281
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Can you please rephrase your question in English, we can only help English Qs here
Sorry.
The issue I have is that yesterday the Stripe webhook was disabled, and then we re-enabled it. However, during that time frame, some events were not sent, and from the dashboard, several events cannot be resent as the resend button is not available.
I have already escalated this issue, and it was suggested that I try using the Stripe CLI. However, I encountered errors. Upon reviewing the documentation, it states that this is only for the test environment, which was confirmed by the previous advisor.
If you're trying to resend a livemode event with the CLI that is supported, you just need to pass the live flag:
stripe events resend evt_1QWFtODzTrb9eRNqxlcp2gyN --live
Yes, that command above should work
I’m getting this error:
{
"error": {
"message": "The provided key 'rk_live_*********************************************************************************************m249R5' does not have the required permissions for this endpoint on account 'acct_1M1yz7DzTrb9eRNq'. Please use a different key to perform this action.",
"type": "invalid_request_error"
}
}
I generated a secret key to use for this, but it seems it doesn’t have the required permissions. How can I generate a key with the necessary permissions to perform this action?
I would just do stripe login
No you'd pass the --api-key at the command level if you prefer:
stripe events resend evt_xxx --live --api-key=sk_live_xxx
Hi
When I run this command:
stripe events resend evt_1QWFtODzTrb9eRNqxlcp2gyN --live --api-key=sk_li********
I get the following error:
{
"error": {
"message": "No CLI endpoints found to retry delivery. Run 'stripe listen' and retry the request to see the event in the CLI, or provide a specific webhook endpoint.",
"param": "for_stripecli",
"type": "invalid_request_error"
}
}
How should I provide the webhook endpoint here to resolve this?
If I need to resend multiple events, is there an easier way to do it?
What I mean is that I need to resend events for multiple transactions.
For example, is it possible to resend events for a pi_***?
No, you have to specify the exact Event ID
If multiple responses with status 500 are sent to Stripe when sending webhook events, does Stripe disable the webhook?
I think Stripe will send you an email first and then disable it, yes. But you can enable it again anytime.
But is it possible that the cause is sending an error in all the requests as a response?
I am not sure what you mean by this.
Well, what I would like to know is, what are the reasons why Stripe disables a webhook?
The docs don't specify the exact number of days, this may vary. But the main reason is receiving any response other than 2xx repeatedly: https://docs.stripe.com/webhooks#disable
Are you expecting your endpoint to respond with errors?
No, it's just that there was an implementation where instead of sending status 200, it was sending error statuses, and I wanted to confirm if that could be the reason.
Yes, that could be the reason.
Ok, thx
Happy to help.