#harvey
1 messages · Page 1 of 1 (latest)
do you have details on what exactly is failing?
webhook id is we_1MeKWzBeoaUlCXy8LyCFBTQy
checkout.session.completed fails
the event is sent to our api and then i see an error in the dashboard, I wanted to understand more details on this error
all the details Stripe has is on https://dashboard.stripe.com/test/events/evt_1MegZqBeoaUlCXy8w27hHxN6
what logs are on your own server at the time when we tried to send that event to you?
so we get the webhook and proceed as expected but for some reason in the stripe dashboard there is an error and I wanted to understand why on stripe side there is an error
what is causing the webhook to come back with an error?
you can see we say the connection timed out
so maybe you took too long to respond, send your HTTP response, in your server. Or your code just never sends a response(you need to send a HTTP 200 status response promptly when receiving the webhook)
you should check the timing there from your server logs/code.
do you know how to turn off the automatic resend?
you can't, unless you delete the endpoint from your Stripe settings
what is the timeout duration?
because we make updates to other services from that webhook but we might have to split it off asychronously then
not something we document since it could(and has in the past) changed
i see
but in general we got no response after 20 seconds there, so you're doing something wrong if your server takes that long to reply
thanks, that might be the culprit
and yes you have to do things async if you have long running actions, you should push that sort of thing to a queue and in the meantime respond with a 200 on the actual HTTP request
we used to have more explicit docs on that but the docs are edited and now it's only really mentioned at https://stripe.com/docs/webhooks#acknowledge-events-immediately