#Stripe - pass rawBody to the `stripe.webhooks.constructEventAsync`

4 messages · Page 1 of 1 (latest)

icy cove
#

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?

#

Stripe - pass rawBody to the stripe.webhooks.constructEventAsync

surreal hill
#

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.

real sandal