Errors and troubleshooting
What the status codes and error messages you meet while scraping actually mean, and the change that usually fixes each one.
An error is information. A 429 says you are too fast, a 403 says a rule refused you, a 407 says your proxy did not get its credentials, and a 502 or 504 says something between you and the site gave up. Reading the code before changing anything saves hours of random tweaks, and most of these errors have one or two usual causes.
This topic also covers the error codes of the GateSolver API. They arrive with errorId: 1, an errorCode and a readable errorDescription, and none of them is charged. Some mean fix your request (an invalid key, missing task data), some mean add balance, and some mean simply send the task again.
Questions in this topic
Errors and troubleshooting questions (23)
- How do I avoid HTTP 429 Too Many Requests?A 429 means you crossed a rate limit; slow down, honor Retry-After, back off with jitter and spread load across sessions.
- What does HTTP 403 mean when scraping?A 403 means the server understood the request and refused it, usually because of IP, headers, missing cookies or a challenge.
- How do I fix HTTP 407 Proxy Authentication Required?A 407 comes from the proxy, not the site: credentials are missing, wrong or badly encoded, or your IP is not allowlisted.
- Why do I get 502 Bad Gateway through a proxy?Through a proxy, a 502 usually means the gateway got no valid reply from the target or its own exit node.
- What causes 503 Service Unavailable while scraping?A 503 means the server cannot handle the request now: overload, maintenance, or a bot check served with that status.
- How do I deal with 504 Gateway Timeout?A 504 means a gateway waited too long for the server behind it; retry later, lighten requests and check slow proxies.
- What is Cloudflare error 522?Error 522 means Cloudflare could not open a connection to the site's origin server in time; it is a server side fault.
- What is Cloudflare error 524?Error 524 means the origin accepted Cloudflare's connection but sent no HTTP reply before the timeout, usually a slow request.
- What does ERROR_CAPTCHA_UNSOLVABLE mean?The solver could not produce an answer for this task; it is free, and repeated cases usually mean the inputs need fixing.
- What does ERROR_ZERO_BALANCE mean?Your balance is too low to start a task; top up in crypto and the same request works again, nothing was charged.
- What does ERROR_KEY_DENIED_ACCESS mean?The clientKey you sent is missing or invalid: often a replaced key, a typo or a stray space.
- What does ERROR_INVALID_TASK_DATA mean?A required field is missing or malformed in your task object, and errorDescription names the field to fix.
- How do I fix SSL certificate errors in scrapers?Update your CA bundle, fix the hostname, add missing intermediate certificates or trust your proxy's CA, rather than disabling checks.
- What does HTTP 408 Request Timeout mean?The server waited too long for your request to arrive and closed it; usually slow uploads, stalled proxies or idle connections.
- What is HTTP 499 Client Closed Request?An nginx log code for a client that hung up before the answer; your scraper sees its own timeout, not a 499.
- What is Cloudflare error 1015?Error 1015 means a rate limiting rule set by the site owner caught your traffic; slow down and wait it out.
- What is Cloudflare error 520?Error 520 means the origin sent Cloudflare an empty or invalid reply; usually a site problem, occasionally provoked by your request.
- How do I fix ConnectTimeout in Python Requests?ConnectTimeout means no TCP connection opened in time: check DNS, host, port, firewall and proxy, then add timeouts and retries.
- What is HTTP 444 and why does a scraper see it?nginx uses 444 to drop a connection without replying; your scraper sees an empty reply, usually because a rule flagged it.
- How do I follow redirects in cURL without loops?Use -L with a cookie jar and a redirect cap; most loops come from cookies set mid-chain that cURL never sends back.
- What does ERROR_TASKID_INVALID mean?getTaskResult got a task id that does not exist or belongs to another API key; usually a bug in id handling.
- What does ERROR_RATE_LIMIT mean?Your API key sent over 600 requests in a minute, mostly polls; pause briefly, poll slower and calls go through again.
- What does ERROR_TASK_NOT_SUPPORTED mean?The task type is not one GateSolver recognizes; check its spelling against the 14 supported types and your widget.
Common questions
Are API errors charged?
No. Error responses and unsolved tasks never deduct from the balance.
What should I do on ERROR_SERVICE_UNAVAILABLE?
Wait a few seconds and send the task again; it is a temporary condition and was not charged.
Is a 403 always a CAPTCHA problem?
No. It can be a firewall rule, a blocked IP range or a header problem; look at the body of the response to see which.
How do I slow down after a 429?
Back off exponentially with some random jitter and lower the number of parallel requests to that site.
Why do I get 407 from my proxy?
The proxy needs authentication; pass the user name and password in the proxy URL or the Proxy-Authorization header.