#birdy247-successful-webhook

1 messages · Page 1 of 1 (latest)

buoyant hamlet
#

Hi there

#

Can you clarify the question a little bit?

#

You want to resend events for one of your endpoints?

alpine kettle
#

Yes, we have a situation where a customers invoice was not marked as paid

#

We received the webhook, but one reason or another, we didnt update it

#

We think it might be related to 2 processes updating the invoice at the same time

#

Would be great to replay this so we can rule it out

buoyant hamlet
#

But you can only resend events from the past 30 days

alpine kettle
#

even prod events for connect?

#

?

alpine kettle
#

Sorry, can you give me some quick tips on how I would test this event

#

This is the event we want to replay to local

#

The event was created in live mode

#

can it be replayed?

buoyant hamlet
#

Sorry for the delay

#

Server is busy

#

Yep it can be replayed

#

One sec for syntax

#

stripe events resend evt_3LFkr5Eqs1t1ALki07GKu573 --account=acct_1H2vtuEqs1t1ALki --live=true

#

It should be that

alpine kettle
#

Right ok

#

And where will this be resent to?

#

Can we get it going to a local URL so we can investigate in our dev enviornment?

#

Ideally we send it to a local endpoint and then we can see exactly whats going on

buoyant hamlet
#

Ah yes sorry, missed that part

#

so stripe listen --forward-to <url> --live=true

#

Actually for this you would need --forward-connect-to

#

Since it is a Connected Account event

alpine kettle
#

ok, and we can put any url in here?

#

I saw in the docs it was an ID

buoyant hamlet
#

To be clear, when you resend the event again it will be sent to all endpoints listening for that event

alpine kettle
#

Great

#

Let me try

#

I am using the cli for a different stripe account

#

Presumably, this needs to be done for the connect platform?

wanton plaza
#

Hi there 👋 taking over for @buoyant hamlet

#

Yes, you'll do that for the platform

alpine kettle
#

Ok

#

So do we need to use stripe listen first, then the replay?

wanton plaza
#

Yes

alpine kettle
#

What does this mean?

#

I want to replay a webhook

#

Do I need to login with my live key?

wanton plaza
#

You login to the Dashboard and locate the event that triggered the webhook in Developer --> Logs

#

Once located, you should have the option to resend

#

If it's a test-mode event, then make sure test mode is toggled in the top right of the page

alpine kettle
#

I have tried this

#

I see the events coming in through the console

#

But they are not being forwarded to my webhook listener

#

I can listen for them fine

#

but keep getting the error about unable to replay them

#

Even if I look at the account on the stripe UI, it says resend failed

#

This is what I need to replay

#

The paynetIntent succeeded from this

#

stripe events resend evt_3LFkr5Eqs1t1ALki07GKu573 --account=acct_1H2vtuEqs1t1ALki --live=true

#

I get a permissions error

wanton plaza
#

I get a permissions error
What error?

alpine kettle
#

Ahh I worked it out

#

Need to --project-name