522 Connection timed out
A 522 from the helodata gateway means the proxy couldn't reach (or finish a handshake with) the upstream IP. It's usually transient — but the X-Helodata-Error-Code distinguishes a few flavors.
upstream-timeout — backend IP didn't respond
HTTP/1.1 522
X-Helodata-Error-Code: upstream-timeoutCauses
The selected residential/mobile/ISP IP went offline between IP selection and connection
Target site is slow and the request exceeded the gateway's upstream timeout
ISP IP whose carrier dropped the connection
Fix
Just retry. Pick a new exit:
Gateway products: drop the
sessionsegment to get a different IPISP: switch to another IP from your batch
If you see upstream-timeout on more than 10% of requests over 5+ minutes, that's not normal — it's worth opening a ticket with a few X-Helodata-Request-Ids.
insufficient-pool — your filter is too narrow
HTTP/1.1 522
X-Helodata-Error-Code: insufficient-pool
X-Helodata-Insufficient-Pool: trueCause — the combined geo + ASN + session filter matches fewer than 10 live IPs.
Fix — broaden the filter, in this order:
Drop
cityDrop
stateDrop
asnSwitch country
If you genuinely need that narrow filter, contact support — we can sometimes pre-stage a larger pool for paid plans.
Target's TLS handshake timed out
(Strictly 502, but related.)
Cause — TLS to the target site failed mid-handshake. Likely target-side: misconfigured cert, OCSP timeout, slow server.
Fix — see SSL / TLS errors.
What to do programmatically
What 522 is not
It's not a target
522. Cloudflare also returns 522 — that's the target site telling the proxy its origin timed out. Distinguish by the presence ofX-Helodata-Error-Code:Has
X-Helodata-Error-Code→ helodata gateway errorNo such header, but has
Server: cloudflareand a cf-ray → target's Cloudflare timing out its own backend; retry won't help much
Still seeing it
Email support@helodata.com with at least one X-Helodata-Request-Id. We log the upstream IP, the target, and the timeout breakdown, and can tell you whether the issue is on our side or the target's.
Last updated
Was this helpful?