postmark-wordpress
postmark-wordpress copied to clipboard
Improve handling of errors when Postmark API is timing out
https://wordpress.org/support/topic/curl-timeout-at-postmark-causes-woocommerce-errors/
On May 28, Postmark’s API was down for about a half-hour https://status.postmarkapp.com/incidents/105834
In the DB log table, we see errors such as this: cURL Error 28: Operation timed out after 30001 milliseconds
In a WooCommerce flow, this had the unfortunate impact of users orders succeeding to be placed, but then erroring out on trying to send. Which caused them not to get to the thank you page, nor receive any confirmation.
Is this something addressable via the plugin? i.e. can it defer sends to not be in the direct flow? or handle this error case better?
maybe an option to schedule an action scheduler or wp-cron email to send instead of doing it inline to the action? Particularly in the checkout flow. Or to be okay with a timeout/error and let the processing continue vs fail out the call flow?
https://github.com/ActiveCampaign/postmark-wordpress/issues/80#issuecomment-1912445018