#birdy247
1 messages ยท Page 1 of 1 (latest)
acct_17G6e9FPwhhLLfF4
evt_3MgmESFPwhhLLfF40vbtwrDv
๐ happy to help
On looking at the account through the stripe dashboard, it says the webhook failed but doesnt show any attempts
we received a 500 error
you should look into your internal logs to see what happened
So no way we can replay this now?
I have just seen we can ๐
Can we possible replay this webhook to a local end point?
you can choose to which webhook endpoint you want to resend with the --webhook-endpoint flag
If we have used stripe listen through the CLI
will it be replayed here by default?
I know I have done this before, but cant remember how
i.e. where live webhooks arrive in our local env
Got It ๐
Can a successfull webhook be replayed?
I guess so
usually you can
You're re-sending to a local endpoint, yes? What does your stripe listen command look like?
Because evt_3MikItFPwhhLLfF41jpntr0v is payment_intent.succeeded, but you say you're receiving payment_intent.created events. Maybe you're not listening for .succeeded?
i.e. stripe listen -e payment_intent.succeeded,payment_intent.created -f http://your.local/endpoint
stripe listen --forward-to www.eventrac.local/webhook/stripe --live
We are getting loads of events to our local listener
These include payment_intent.succeeded
BUT if we replay a payment_intent.succeeded that was paid with klarna, it never arrives to our local endpoint
Then I suspect the issue lies in your code
I suggest you add some logging your endpoint(s). If the CLI is forwarding them to whatever www.eventrac.local/webhook/stripe then you need to confirm that they're actually arriving in your handler
I confirm they are not arriving in our handler
We've no insight into the outcome of events forwarded by the CLI (they all report as 'success')
Then I'm not sure unfortunately
Are you sure this isnt expected your end?
Is what expected?
You can see the CLI receiving and forwarding the events in your prompt yes?
2023-03-17 10:13:57 --> payment_intent.succeeded [evt_3MlvO4BDB9fVNtrX019q4KvT]
2023-03-17 10:13:57 <-- [200] POST http://localhost:3000/api/stripe/webhook [evt_3MlvO4BDB9fVNtrX019q4KvT]
Can you share:
- The command you run to resend (
stripe events resend). - An example of a
evt_xxxyou are receiving.
Otherwise this may be an occurrence of a long running CLI issue: https://github.com/stripe/stripe-cli/issues/600
stripe events resend evt_3Mgvm9FPwhhLLfF408sJsd1h --account=acct_17G6e9FPwhhLLfF4 --live --api-key=sk_live_xxxx
That event never shows in these logs
So you don't receive evt_3Mgvm9FPwhhLLfF408sJsd1h? But do receive evt_3MmaYjCt3m4r281r0gA04UgL?