Stripe - pass rawBody to the `stripe.webhooks.constructEventAsync`
In general, stripe webhook works for me, however I am wondering why it gives me the error about passing rawBody or buffer to
await stripe.webhooks.constructEventAsync
I followed Web dev cody tutorial. We both used request.text() as a payload to stripe.webhooks.constructEventAsync
But this is what I get from convex console (screenshots)
Any ideas, should I worry about it or should I leave it as it is?

3 Replies
Are you getting this error constantly, or only sometimes? If only sometimes, it could legitimately be a malformed webhook request. I know some webhook providers will send a few test requests, including one that should fail validation, as part of setting up your webhook -- not sure if that would apply here.
Id say that is not a expected error, I've never noticed it. But stripe sure seems to spam so much useless stuff at the api it might just be garbage on their end. If the webhook secret was wrong or something id assume it wouldnt be able to construct/finish any of the fulfill requests
So far it happens constatly. It means, the same endpoint
/stripe:fullfil
2 times succeed and 1 time fails and keeps spaming 2 times again with success.
Anyway so far the flow works fine, I will keep it like this. I will see what will happen on production.
Thanks for your answers