#Aarti MusicHub

1 messages ยท Page 1 of 1 (latest)

near bloomBOT
primal sonnet
#

I'd recommend creating a new Webhook endpoint with the latest version, so that the event will be sent with latest version

silk nexus
#

I do not see a way to add a new webhook endpoint with a specific version. It always point to the main version set in dashboard

#

and since I updated the main verison, the webhook endpoint already is pointing to the latest version but that is only for new events from now

#

the old events that are sent with old version are constantly being retried but it will never be successful

#

I can share the webhook ID if you would like to look into it

primal sonnet
#

Yup, sharing Webhook ID will be helpful for me to investigate

silk nexus
#

we_1MTmjqFa6nOwNUem44zWiDuY

#

as you can see, all failed events have "api_version": "2020-08-27", but the webhook is already at "2022-11-15" and our code is also only handling "2022-11-15" version payloads, so it fails with invalid payload version

vague shale
silk nexus
#

So should I create a webhook endpoint with an old version now? how will that help?

#

Or maybe you can help me with handling two different versions in code, using the stripe-java lib

vague shale
#

Um I am looking into your webhook endpoint. Why were those events sent in old API version? Probably they are retries from when your endpoint still in previous version?

silk nexus
#

yes exactly

#

I would assume either there's a way to resend them with the new version or handle this old version payload (along with the new one) in code

vague shale
#

So now you have the endpoint in new version, and a bunch of events being retried from a payload before it's changed (by changing the API version in Dashboard)

silk nexus
#

yes

vague shale
#

Umm can you try creating a new endpoint, specify the old API version by the reference link I provided above? Then resend that event

#

This new endpoint, you will need to configure a java server works on old API

silk nexus
#

hmm, that cannot be with the existing api that handles the endpoints I guess, will have to create a new app

#

is it possible for you to give me a list of event ids that are failing ?