#Bit

1 messages ยท Page 1 of 1 (latest)

dapper joltBOT
viral raven
#

Let's talk here

weary beacon
#

helloooo

viral raven
#

What can we help with?

weary beacon
#

Stripe exception: Received event with API version 2022-08-01, but Stripe.net 39.48.0 expects API version 2020-08-27. We recommend that you create a WebhookEndpoint with this API version. Otherwise, you can disable this exception by passing throwOnApiVersionMismatch: false to Stripe.EventUtility.ParseEvent or Stripe.EventUtility.ConstructEvent, but be wary that objects may be incorrectly deserialized. stack: at

#

I have moved pages to a new company

#

and receiving this

#

but I can't select a different API version on my consolle

viral raven
weary beacon
#

on the link you provided there's only calls to create a webhook, but not with a specific api version

#

aah ok ok found

#

so I can't do it from the web dashboard

#

right ?

viral raven
#

Correct

weary beacon
#

damn

#

and I can't update the current one

#

so I need to delete the current first

#

and then create a new one by curl and specifying every single event manually

#

together with the api_version

#

I can't simply update the current one

viral raven
#

You can specify the Events in the Dashboard once it's created via the API

#

But no, you won't be able to update the current one

weary beacon
#

ok that's some better

#

like this ?

viral raven
#

Please make sure you do not post your API key here. Even if it's just the test API key, remember this is a public server where anyone can see it

#

When you run the cURL command, does it work?

weary beacon
#

I obvioulsy used the test api I found on that page

#

it was not my API ๐Ÿ™‚ I'm not that much in panic

#

is it right ?

#

I'm going to try right now

#

"error": {
"code": "parameter_missing",
"doc_url": "https://stripe.com/docs/error-codes/parameter-missing",
"message": "Missing required param: enabled_events.",
"param": "enabled_events",
"request_log_url": "https://dashboard.stripe.com/logs/req_86PPzb04Cmx8Nh?t=1674150276",
"type": "invalid_request_error"
}
}

Learn more about error codes and how to resolve them.

#

it looks like I can't create it without enabled_events ?

viral raven
#

You should be able to add just 1 enabled event, then go into the dashboard and add the rest later, as far as I know

weary beacon
#

yes, done... but now I can't add them by selecting "all" ๐Ÿ™‚ hahahahah

#

I need to select them one by one

#

that's cruel

#

I'm adding them one by one now

#

I wish to thank you very much

#

you saved me lots of stress and hours of searching

#

this channel is really amazing

#

thanks for your time!!!

#

oh another bad news... since I deleted the old webhook, now all the events which failed

#

are not resendable

#

that's a total panic

viral raven
#

You're totally right. That is an awful experience. I'm going to file a feature request for updating the webhook API version to mitigate this type of thing in the future.

Taking a look into the failed events now

weary beacon
#

failed events are still there

#

if I click on Resend it says "This event no longer existss"

viral raven
#

How old is the event?

weary beacon
#

30 minutes ago

#

evt_3MS1MYFfKlsrpO4n1XxF0DcC

#

for example

viral raven
#

I think it's because the Dashboard doesn't let you resend events to new webhook endpoints.

I believe you can resend events to a new webhook endpoint via Stripe CLI - Use the command stripe events resend <event_id> --webhook_endpoint=<endpoint_id> for events up to 30 days old. This will work even for events that have never been sent to that endpoint before.

weary beacon
#

many thanks, leaving now... have to fix something else now with db...

#

thank you very much again ๐Ÿ™‚ hope some of this things will be improved thanks to your feature request

#

bye