How to Debug & Fix “cURL error 28: Connection timed out” in WordPress REST API & Webhooks

Systematic Linux/PHP troubleshooting workflow for cURL error 28 in WordPress Site Health, payment gateways, licensing updates, and WooCommerce webhooks.

How to Debug & Fix “cURL error 28: Connection timed out” in WordPress REST API & Webhooks
• TECHNICAL ARCHITECTURAL BLUEPRINT • VERIFIED PRODUCTION CODE EOSITE DIGITAL
ARCHITECTURAL EXECUTIVE SUMMARY VERIFIED IN PRODUCTION • 2026/2027

Definitive Engineering Takeaway: Systematic Linux/PHP troubleshooting workflow for cURL error 28 in WordPress Site Health, payment gateways, licensing updates, and WooCommerce webhooks.

Runtime Benchmark PHP 8.3 • WP 6.7+
Core Web Vitals Mobile LCP < 1.2s
Track Record 150+ Builds • 100% JSS
Production Scope Irish Agency • AU QA Audits
• ARCHITECTURAL TAKEAWAYS
  • Production-tested implementation based on real client projects (SkillStack.ie, FloppyFabrics.ie, Aoife Brogan Ballet).
  • Zero-bloat execution: strict attention to DOM depth, Core Web Vitals (sub-1.2s mobile LCP), and clean PHP hooks.
  • Verified code payloads formatted for rapid copy-paste and direct deployment.

cURL error 28: Operation timed out after 10000 milliseconds with 0 bytes received appears across WordPress Site Health loopback checks, plugin license activations, and WooCommerce payment/shipping hooks. Unlike a fatal syntax bug, cURL 28 is almost always a network routing, DNS, IPv6 blackhole, or PHP worker starvation symptom.

1. Common Root Causes (In Exact Diagnostic Order)

  • Loopback Deadlock (Self-Requests): Only 1–2 PHP-FPM workers are free while a frontend request synchronously calls wp-cron.php or /wp-json/ on the same host - starving itself until timeout.
  • Broken IPv6 Outbound Routing: The container attempts an AAAA lookup first, stalls 5 seconds waiting on an unrouted IPv6 gateway, and times out before falling back cleanly.
  • Stalled Third-Party SaaS APIs: External CRM/ERP/shipping calls exceed WordPress’s default 5s timeout inside WP_Http.
  • Firewall / ModSecurity Blocking Loopback User-Agents: Aggressive WAF rules block internal WordPress/6.x HTTP signatures.

2. Fast SSH Diagnostic & Safe Async Patch

# Test direct IPv4 vs IPv6 resolution from origin shell
curl -I -4 --max-time 5 https://api.wordpress.org/plugins/info/1.2/
curl -I -6 --max-time 5 https://api.wordpress.org/plugins/info/1.2/
// Scope longer HTTP timeout strictly to verified external endpoints (never globally infinite)
add_filter('http_request_args', function (array $args, string $url): array {
    if (str_contains($url, 'api.partner-erp.com')) {
        $args['timeout'] = 12;
    }
    return $args;
}, 10, 2);

Stabilize Your WordPress HTTP Layer

Run a direct origin socket & IPv6 DNS check in our 40-Point Speed & DNS Audit, inspect webhook signatures in WC Webhook Inspector, or dispatch urgent debugging via WordPress Quick Fixes ($49+) or Custom API Engineering.

Fix Slow TTFB, Database Bloat & WooCommerce Latency

Run our Free 40-Point Speed Audit, size PHP workers, start with a $49+ quick fix task, or pair Hostinger NVMe Cloud ↗ (99/100 Mobile PSI verified on eosite.com).

← Previous Guide Resolving ERR_TOO_MANY_REDIRECTS in WordPress Behind Cloudflare SSL, Nginx & Reverse Proxies Next Guide → Cloudflare WAF Rules + Native MU-Plugin vs. Heavy Security Plugins: CPU & Memory Impact