How-To

cURL error 28 after 1000 ms: Gravity Forms and ActiveCampaign

This error means a request from your WordPress server waited 1 second and got no reply. With Gravity Forms and ActiveCampaign behind the Cloudflare proxy, the usual fix is to bypass the proxy for admin-ajax.php, or raise the timeout for that one call. Steps below.

Sohail HussainSohail Hussain9 min read

Short answer

  • A request from your WordPress server waited 1 second, got no bytes back and gave up. Behind Cloudflare, the usual culprit is a loopback call to your own admin-ajax.php that the proxy slows or challenges.
  • Test by switching the site's DNS record to DNS only. If the feed then works, add a narrowly scoped Cloudflare skip rule for /wp-admin/admin-ajax.php, or make the feed run synchronously.
  • If DNS only changes nothing, the problem is your host's outbound connection, not Cloudflare.

You submit a form, the entry saves, and the contact never shows up in ActiveCampaign. The Gravity Forms feed log or entry notes say cURL error 28: Operation timed out after 1000 milliseconds with 0 bytes received. It works when Cloudflare's proxy is off and fails when it is on.

Why it happens

cURL error 28 is CURLE_OPERATION_TIMEDOUT: the connection or the response did not finish inside the time limit. The useful number is 1000 milliseconds. That is not a cURL default. Some plugin or WordPress code set a 1-second timeout on that request, and "0 bytes received" means nothing came back in that second.

Cloudflare sits between visitors and your site. It does not sit between your server and ActiveCampaign's API. So if switching the proxy changes the result, the failing request probably leaves your server and comes back to your own domain. A typical case is WordPress calling its own admin-ajax.php to process a feed in the background. That loopback now passes through Cloudflare, where bot protection, a challenge page or plain added latency can use up a 1-second budget.

I can't see inside your site, so treat that as the leading hypothesis and confirm it with the test below. People on Cloudflare's community forum report the same pairing: Gravity Forms to ActiveCampaign works with the proxy off and fails with it on. I'm not aware of an official fix from Cloudflare, Gravity Forms or ActiveCampaign as of November 2026, so this is a diagnosis path rather than a patch.

CauseSymptomFix
Cloudflare challenges the loopback requestFails only with the orange cloud onSkip rule for admin-ajax.php scoped to your server IP
Loopback adds too much latencyIntermittent, worse under loadHosts-file entry or synchronous feed
Timeout set too low on the API callSlow ActiveCampaign responsesRaise the timeout for that host only
Host blocks or slows outbound callsFails with the proxy off tooTest with curl from the server, contact host

Step-by-step fixes

Confirm that the proxy is the cause

  1. In Cloudflare, open DNS and switch the record for your site from Proxied (orange cloud) to DNS only (grey cloud).
  2. Submit a test entry on the form.
  3. Check the Gravity Forms entry notes or feed log. If the ActiveCampaign feed now succeeds, the proxy is involved.
  4. Switch the record back to Proxied. Allow a few minutes for each change to take effect.

If the error persists with the proxy off, skip to "Check whether outbound calls are blocked or slow".

Do not leave the proxy off

DNS only exposes your origin server's IP and removes Cloudflare's protection. Use it as a short test, then switch back.

Fix 1: skip Cloudflare's checks for admin-ajax.php

Your server is not a browser, so it can't pass a JavaScript challenge. It receives the challenge page instead of the answer, and the feed fails.

  1. In the Cloudflare dashboard, open your site and go to Security, then WAF, then Custom rules. Menu names shift between dashboard versions; search for "Custom rules" if you don't see it.
  2. Create a rule where the URI path equals /wp-admin/admin-ajax.php and the source IP equals your web server's public IP.
  3. Set the action to Skip and choose the security features your plan lets you skip, for example remaining custom rules, rate limiting and managed rules.
  4. Deploy the rule and resubmit the form.

Scoping to your server IP is deliberate. Exempting admin-ajax.php for everyone removes protection from an endpoint attackers like to hit. If your host rotates outbound addresses, ask which IP WordPress uses for outgoing requests.

Fix 2: send loopback requests straight to the server

If you control the server, requests to your own domain can skip Cloudflare through the hosts file:

127.0.0.1  example.com www.example.com

This works only if the web server on that machine answers for your domain on the port WordPress calls (usually 443) with a certificate valid for the domain. It also affects anything else on the box that fetches your own site. On managed hosting you usually can't edit it; ask support. I'd try Fix 1 first because it needs no server access.

Fix 3: process the feed during submission

Gravity Forms feed add-ons can process feeds in the background, which uses the loopback described above. To test without it, force synchronous processing:

add_filter( 'gform_is_feed_asynchronous', '__return_false' );

The feed then runs while the visitor's submission is handled, so the loopback disappears. The trade-off: a slow ActiveCampaign response makes the form submit slower. Test on staging first and check the filter against your add-on's documentation, since versions differ.

Fix 4: raise the timeout for the ActiveCampaign call

If the API call itself is slow, give it more time. This snippet, added to a small plugin or your theme's functions.php, lengthens the timeout only for ActiveCampaign API requests (hosts look like youraccount.api-us1.com):

add_filter( 'http_request_args', function ( $args, $url ) {
    if ( strpos( $url, '.api-us1.com' ) !== false ) {
        $args['timeout'] = 20;
    }
    return $args;
}, 10, 2 );

Limits: this won't help if the failing request is a non-blocking loopback, because those are designed to return almost immediately. If the add-on sets its own timeout after your filter runs, it can override yours, so test it. Raising the timeout for every request is a blunt option; I'd skip it, since it slows the whole admin whenever a remote service hangs.

Order to try

Fix 1 first, then Fix 3 if the loopback still fails. Fix 4 only when the ActiveCampaign call is genuinely slow.

Check whether outbound calls are blocked or slow

If the DNS-only test did not help, test the connection from the server over SSH, using your own account name and API key:

curl -s -o /dev/null -w "%{http_code} %{time_total}s\n" \
  -H "Api-Token: YOUR_API_KEY" \
  https://youraccount.api-us1.com/api/3/users/me

You want 200 and a time of a second or two at most. A hang or long delay points to the host: an outbound firewall, a slow DNS resolver or a broken IPv6 route. Your host can fix those; Cloudflare and ActiveCampaign cannot. A 401 or 403 is a credentials or account problem, not a timeout. A mistake in a DNS record for your own domain does not affect calls to ActiveCampaign's hostname.

Checklist before you try again

  • The failure disappears with the record set to DNS only, or you have ruled that out.
  • The skip rule matches both the path /wp-admin/admin-ajax.php and your server's outbound IP.
  • Cloudflare Security Events show which rule acted on the loopback request.
  • The curl test from the server returns 200 quickly.
  • You retested with a fresh form entry, not a resend of an old one.

To see which Cloudflare rule acted, open Security Events for your zone and filter by your server's IP and the path /wp-admin/admin-ajax.php.

If nothing works

Contact your host first when the curl test is slow, and Cloudflare support when the skip rule has no effect. Gravity Forms support can confirm how your version of the ActiveCampaign add-on processes feeds and what timeout it sets. Include:

  • The exact error string and the timestamp of a failed attempt.
  • The Gravity Forms entry ID and the feed log line.
  • Whether the failure disappears with the record set to DNS only.
  • The result of the curl test and any matching Security Events.
Subject: cURL error 28 (1000 ms, 0 bytes) on Gravity Forms to ActiveCampaign feed

Our Gravity Forms ActiveCampaign feed fails with:
"cURL error 28: Operation timed out after 1000 milliseconds with 0 bytes received"

Site: example.com (proxied through Cloudflare)
Failed at: {timestamp, timezone}
Entry ID: {entry ID}
Behavior: feed succeeds with the DNS record set to DNS only, fails when proxied.
Tried: skip rule for /wp-admin/admin-ajax.php scoped to server IP {IP}.
curl test from the server to the ActiveCampaign API returned {status} in {seconds}s.

Please check whether loopback requests to /wp-admin/admin-ajax.php are being
challenged or delayed, and which timeout applies to this request.

Common questions

Why is the timeout exactly 1000 milliseconds?

Because code on your site sets it; cURL's own default is much longer. The plugin or add-on that makes the request chooses the limit, which is why raising it in WordPress can work when the request is a normal, blocking one.

Is it safe to turn Cloudflare off for the whole site?

For a short test, yes. As a permanent fix, no: you lose caching, DDoS and bot protection, and your origin IP becomes visible. A scoped skip rule is a safer change.

Will this lose my form entries?

The entry itself is saved by Gravity Forms. Only the feed to ActiveCampaign fails, and you can usually resend the feed from the entry screen once the cause is fixed. A failed feed is silent for visitors, so check entry notes now and then.

Does this error mean ActiveCampaign is down?

Not by itself. If the DNS-only test fixes it and the curl test from your server returns 200 quickly, ActiveCampaign is answering fine and the delay is on your own site's path.

strategyactivecampaign-gravityerror-codes
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

Building Mailneo — AI-powered email marketing for growing businesses.

Ready to supercharge your email marketing?

Start sending smarter emails with AI-powered campaigns. No credit card required.

Get Started Free