Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pgraham3 opened this issue Jun 22, 2020 · 2 comments
Open

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

pgraham3 opened this issue Jun 22, 2020 · 2 comments

Comments

@pgraham3
Copy link
Contributor

pgraham3 commented Jun 22, 2020

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
Copy link

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
Copy link

37Rb commented Jan 26, 2024

#80 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants