#harvey

1 messages · Page 1 of 1 (latest)

stoic vigilBOT
trim lion
#

do you have details on what exactly is failing?

hollow karma
#

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

trim lion
#

what logs are on your own server at the time when we tried to send that event to you?

hollow karma
#

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?

trim lion
#

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.

hollow karma
#

do you know how to turn off the automatic resend?

trim lion
#

you can't, unless you delete the endpoint from your Stripe settings

hollow karma
#

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

trim lion
#

not something we document since it could(and has in the past) changed

hollow karma
#

i see

trim lion
#

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

hollow karma
#

thanks, that might be the culprit

trim lion
#

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