#ajalexsmith

1 messages ยท Page 1 of 1 (latest)

silk copperBOT
smoky fern
#

Hello! Stripe can only resent Events in API versions it created at the time the Event was originally created. Can you tell me more about what you're trying to do?

round lodge
#

Hi There! ๐Ÿ™‚ Yeah, I'm creating a checkout session, then picking up the webhook on a session complete event. In theory it seems to be sending the correct version request to the webhook, but when i use the CLI to forward the event to localhost, and use the events resend command, it seems to chaneg the version to 2020

smoky fern
#

Yep, it's going to use your account's default API version.

round lodge
#

Theres no way of just chaging the test accounts api version?

smoky fern
round lodge
#

I did but it didnt seem to work?

smoky fern
#

So, to clarify, when you resend your Webhook Endpoint with API version 2022-11-15 is not getting the Event in that version?

#

Can you paste the Event ID (evt_) here for me?

round lodge
#

Thats correct!

#

Its sending it to the live webhook with the correct version, but seems to be defaulting to the 2020 version when resending it via the cli

#

evt_1NO2tFFSvEOPj1X4OEiNS3UP

smoky fern
#

Right, that's expected behavior. I'm not entirely sure I understand what you're trying to do? It seems like the resend is working as intended. If you want the Event in that specific version locally you can fetch it via the API.

round lodge
#

The webhook is version 2022-11-15, and is receiving 2022-11-15 hooks. I'm trying to debug an error, so setup the cli to forward requests to localhost. When i try and replay the above event through the CLI, it sends it as 2020-08-27, which isn't correct

silk copperBOT
round lodge
#

Ah, got it, the CLI version was out of date. All sorted ๐Ÿ™‚

smoky fern
#

Ah, okay!

#

I didn't think the CLI version would do something like this, but good to know!

round lodge
#

I was on 1.13 but 1.15 seemed to fix it! ๐Ÿ™‚

#

Thanks for your help!

smoky fern
#

I didn't do much, but no problem! ๐Ÿ™‚