Thousands of webhook requests for a single order and overwhelming server
-
This morning (06:17 UTC) Stripe started making thousands of webhook requests to our server and eventually overwhelmed it. To give you an idea, we had over 6,500 requests from Stripe in under half an hour. All webhook requests were for the same order (which, after a couple of failed payments due to invalid card details, succeeded). At the time we were running version 5.0.0 of the Stripe plugin. I have since upgraded WordPress, all plugins and updated to PHP 7.4 (from Ubuntu’s 7.2) so the status report is not the same as it was when the problem started.
I’ve been in contact with Stripe and they say that Woocommerce generates all of the Stripe webhook requests and I wondered if there is somewhere I can see this happening in Woocommerce or on the server. I did not have webhook logging enabled but I have now switched this on.
The pending webhook requests are still attempting to clear since the server cannot process them fast enough before it falls over (at which point the requests are queued for retry and the cycle continues).
Might a possible fix for the backlog of requests be to delete the webhook endpoint and recreate this?
Any thoughts welcome.
- The topic ‘Thousands of webhook requests for a single order and overwhelming server’ is closed to new replies.