postmark-wordpress icon indicating copy to clipboard operation
postmark-wordpress copied to clipboard

Improve handling of errors when Postmark API is timing out

Open pgraham3 opened this issue 4 years ago • 2 comments

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?

pgraham3 avatar Jun 22 '20 17:06 pgraham3

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?

broksonic21 avatar Jun 22 '20 19:06 broksonic21

https://github.com/ActiveCampaign/postmark-wordpress/issues/80#issuecomment-1912445018

37Rb avatar Jan 26 '24 17:01 37Rb