#KarlS-webhook
1 messages · Page 1 of 1 (latest)
Just got done conversing with Stripe Support.
Hi, firstly for the Customer Service, I believe it's still there
ah okie so you figured it out the Stripe Support
For resending the events, we have a resend API that you can use to create a batch, but let me look up if we have a better way
Complete reference documentation for the Stripe CLI.
Here is the problem: I have many webhook events that have failed. I see no way to identify which failed event is the original, therefore to process and resend all failed events would mean that I sending things many many many times for the same event.
Make sense?
resending events should have the same Id
So for instance: a user on my site pays for a product, stripe processes the charge and then sends me "invoice.paid" (among other subscribed webhook events), that webhook event fails to send, and then later it retries. It retries gain, and eventually quite retrying.
you are saying that the eventid is not unique for every webhook event try but unique for each original webhook event?
OK, this one for example: evt_3JXphIDOnh5qjbu11pnIBr5H
That was me resending it.
and has the same Id evt_xxx
So you would want to find out the unique set of failed event ids, and haven't succeed yet first
then create a batch on that set, to use the resend command
I see that now. So the problem is that as I Page through the failed webhook events and hit Resend, there are 5 more failed event for this same webhook that I might click Resend on.
ok, and I can do that with the Stripe CLI you are saying...
yeah, but for the steps finding all failed events to work on, you would need the API (I am sorry), filter by the delivery_success parameter: https://stripe.com/docs/api/events/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok, and from that list get that failed ones. Thank you so much. I can take it from here!
Good luck!
sure
if the column, "next resend" is blank, is that event dead in the water and will never be retried again by Stripe dashboard? In other words, I've reset enabled and fixed my webhook endpoint, by starting it back up it won't try automatically to resend these events?
*it [Stripe]
Hence, I'll need to resend them myself with the Strip CLI
Do you mean "next retry"?
Yah, next retry.