ActiveCampaign / postmark-wordpress

The Official Postmark Wordpress Plugin
GNU General Public License v2.0
17 stars 17 forks source link

Improve handling of errors when Postmark API is timing out #59

Open pgraham3 opened 4 years ago

pgraham3 commented 4 years ago

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?

broksonic21 commented 4 years ago

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?

37Rb commented 8 months ago

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