#reni
1 messages · Page 1 of 1 (latest)
Hi there
All my Live webhooks come back with errors and empty response bodies.
What do you mean by "come back", the webhook event are sent to your endpoint and your endpoint responds
Could you please share an event Id evt_123?
evt_3M4osnFi0mafNbOv0BF71PXQ
Come back as in the response
But it's not using one of the responses our back end sends back
Your endpoint don't respond to Stripe Webhook call
https://getdismissed-209914.wl.r.appspot.com/PaymentWebhooks/UploadStripeInvoice
Did you tried to debug your endpoint ?
Any reason why the test webhook would respond, but the live one doesn't?
Yes my endpoint runs through all the code and completes all its tasks perfectly.
It seems that it might be slow though and takes about 30 seconds to run. Could this cause the Stripe webhook to assume no response is coming?
Ah that why so, your webhook endpoint need to respond as soon as possible and defer all complex logic in asynchronous way:
https://stripe.com/docs/webhooks/best-practices#pending-webhook-statuses:~:text=The destination server took too long to respond to the webhook request. Make sure you defer complex logic and return a successful response immediately in your webhook handling code.
Alright. Thank you so much. Just for interest, do you happen to know how long stripe will wait for the response, before flagging it as timed out?
keep in mind that Stripe expect to receive quickly the response, ideally you respond directly with 200 and do your treatment in an async way. That's the best solution 🙂
https://stripe.com/docs/webhooks#built-in-retries:~:text=If Stripe doesn’t quickly receive a 2xx response status code for an event%2C we mark the event as failed and stop trying to send it to your endpoint.
Alright thank you very much