Quick answer
Why did my proxied request fail, and how do I fix it?
Find out who answered first: the proxy gateway (407, CONNECT failures, some 502 and 504), the website (401, 403, 429, most 503) or your own client (TLS errors, timeouts). CrawlRelay documents 15 errors that scrapers meet with any HTTP or SOCKS5 proxy, each with its cause, the retry rule and code to fix it.
In brief
- Gateway errors: 407 and failed CONNECT tunnels are configuration problems; fix them, never retry blindly.
- Website errors: 403 once then stop, 429 and 503 later and slower, honouring Retry-After.
- Exit errors: 502, 504, resets and read timeouts usually clear on a new connection, which gets a new exit.
- Client errors: SSL WRONG_VERSION_NUMBER and certificate failures come from the proxy URL or the trust store.
- Reference: 15 pages in 3 groups, from HTTP status codes to SOCKS5 failures.
Which error am I looking at?
Match the symptom, check who sent it, then open the page for the full diagnosis. CrawlRelay's count of its own reference is 15 pages: 7 HTTP status codes, 3 browser and client errors, and 5 connection and TLS errors.
| Symptom | Sent by | Retry? | Page |
|---|---|---|---|
407, 'Tunnel connection failed: 407' | Proxy | No | 407 Proxy Authentication Required |
401 with WWW-Authenticate | Website | No | 401 vs 407 |
403 page or firewall message | Website | Once, then stop | 403 Forbidden |
429, often with Retry-After | Website | Yes, later | 429 Too Many Requests |
502, 'CONNECT tunnel failed, response 502' | Proxy or CDN | Yes, new exit | 502 Bad Gateway |
503, maintenance or challenge page | Website or CDN | Yes, with backoff | 503 Service Unavailable |
504 | Proxy or CDN | Once or twice | 504 Gateway Timeout |
net::ERR_TUNNEL_CONNECTION_FAILED | Browser (proxy refused CONNECT) | After fixing the cause | ERR_TUNNEL_CONNECTION_FAILED |
net::ERR_PROXY_CONNECTION_FAILED | Browser (proxy unreachable) | No | ERR_PROXY_CONNECTION_FAILED |
ProxyError: Unable to connect to proxy | Python client | Depends on the cause | [Cannot connect to proxy](/docs/errors/cannot-connect-to-proxy/ "How do I fix Cannot connect to proxy (ProxyError)?") |
[SSL: WRONG_VERSION_NUMBER] | Your TLS library | No | SSL: WRONG_VERSION_NUMBER |
CERTIFICATE_VERIFY_FAILED | Your TLS library | No | Certificate verify failed |
ReadTimeout, 'Read timed out' | Your client | Yes, new exit | [Read timed out](/docs/errors/read-timeout/ "How do I fix Read timed out (ReadTimeout)?") |
ECONNRESET, 'socket hang up', 'Connection reset by peer' | Network | Yes, safe requests | [Connection reset](/docs/errors/connection-reset/ "How do I fix Connection reset by peer (ECONNRESET)?") |
| 'Missing dependencies for SOCKS support', curl error 97 | Client or SOCKS server | Depends | SOCKS5 errors |
Where is every error, grouped by type?
HTTP status codes
- 401 Unauthorized vs 407
- 403 Forbidden
- 407 Proxy Authentication Required
- 429 Too Many Requests
- 502 Bad Gateway
- 503 Service Unavailable
- 504 Gateway Timeout
Browser and client errors
Connection and TLS errors
How can I tell the proxy's error from the website's?
Look at when the error happened: before the TLS handshake, it came from the proxy; after it, with the site's headers and HTML, it came from the website. For an HTTPS site, a client first asks the gateway to open a tunnel with CONNECT. A status on that step, such as 407, 502 or 504, is the gateway speaking. Once the tunnel is up, TLS runs end to end between the client and the site, and every status after that is the site's own answer.
curl -v shows the boundary plainly: the CONNECT exchange, then the TLS handshake, then the site's response. The curl guide prints the CONNECT status and the HTTP status side by side in one line with -w, which is the fastest way to sort a batch of failures.
Which errors should a scraper retry automatically?
Retry what can change on its own, and stop on what cannot.
- Retry with a new connection: 502, 504, connection resets and read timeouts. A new connection usually gets a different residential exit.
- Retry later, slower: 429 and 503. Wait for
Retry-Afteror back off exponentially with jitter, and lower concurrency on that host. - Retry once, then stop: 403. One retry on a new IP separates a flagged address from a site rule.
- Never retry blindly: 407, 401, TLS errors and unreachable proxies. They are configuration problems.
The Python guide shows a retry policy that follows these rules with urllib3's Retry, and the 403, 429 and CAPTCHA guide covers what to do when a site keeps refusing.
How do I log errors so they are easy to debug?
Log five fields for every failed request: the host, the status or exception class, the session ID, the time to first byte and the first 200 characters of the body. The body tells whether a CDN, a firewall or the proxy wrote the error page. Count errors per host and per status every minute: a jump on one host means that site changed something; a jump on every host means the setup or the network did.
Do failed requests cost traffic?
A request that fails before reaching the target costs nothing at CrawlRelay; a block page from a website costs what any page costs. CrawlRelay counts all data sent and received through the proxy, upload and download with headers, and 1 GB means 1,000,000,000 bytes. Connection attempts that fail before reaching the target are not counted, so a 407 or a refused CONNECT does not use the plan.
A 403 page, a CAPTCHA page or a 429 response is different: the website answered, the bytes crossed the exit, and they count. A scraper that keeps retrying a refusal spends traffic for nothing. Fix configuration errors early, slow down on 403 and 429, and watch the per-host error counts described above.
What should I send to support when an error persists?
Send the exact error text, the time in UTC, the username without the password, and the result of the same request with curl -v. Those four items help separate a gateway problem from a target problem. Keep the password and any API key out of the message; if one leaked, create a new password for that login in the dashboard.
CrawlRelay credits a plan back in full when it does not work and support cannot fix it within 24 hours, under the published refund policy. Support is at [email protected].
Error reference: questions
How can I tell if an error comes from CrawlRelay or from the website?
Errors on the CONNECT step, shown by curl -v before any TLS handshake, come from the CrawlRelay gateway: 407, or a 502 or 504 on CONNECT. Statuses that arrive after the handshake, with the site's headers and HTML, come from the website.
Are failed requests billed by CrawlRelay?
CrawlRelay does not count connection attempts that fail before reaching the target. A block page from a website is a normal response with a size, so it counts like any other page.
What is a normal error rate for a scraper on CrawlRelay residential proxies?
It depends on the targets. Proxyway's 2026 research measured a median success rate of 99.28% on residential networks but 74.43% on Amazon, Google and Instagram; track the rate of each target over time on CrawlRelay, since a sudden change matters more than the level.
Which CrawlRelay error page should I read for a headless browser?
Start with ERR_TUNNEL_CONNECTION_FAILED: in Chrome it usually hides a 407 from CrawlRelay because the credentials were written into the server URL. ERR_PROXY_CONNECTION_FAILED means the browser never reached the gateway host or port.
Verdict
- Fix, do not retry, any 407, 401, TLS or proxy-unreachable error: they never clear on their own.
- Retry on a new connection for 502, 504, resets and timeouts; slow down for 429 and 503; stop after one retry on 403.
Sources (3)
- Proxy Market Research 2026 (residential success rates, data from March and April 2026) — Proxyway (read 2026-11-13)
- RFC 9110, HTTP Semantics: status codes 401, 403, 407, 502, 503 and 504 — IETF (read 2026-11-13)
- RFC 6585: 429 Too Many Requests — IETF (read 2026-11-13)
Test your setup on 1 GB
$1.50 for 1 GB of residential traffic; failed connection attempts are not counted.