Errors and troubleshooting
What does ERROR_ZERO_BALANCE mean?
It means your account balance is too low to cover a new task, so the API refused to start it; top up and send the same request again.
The meaning
ERROR_ZERO_BALANCE is returned by createTask, and by in.php in the older interface, when your balance cannot pay for the task you asked for. No task is created and nothing is charged; the error response itself is free. Once you add funds, the identical request succeeds. Tasks that were already running when the balance ran low are not affected by this error; it only stops new ones.
How to fix it now
- Sign in to your account with your account token.
- Open the top-up page and choose a coin and network. GateSolver accepts 25 coin and network combinations, including USDT on TRC20, BEP20, ERC20, Solana, Polygon, Arbitrum and TON, USDC on several networks, BTC, ETH, BNB, SOL, LTC, TRX, DOGE, TON and XRP.
- Send at least $40, the smallest top-up. The balance updates once the payment is confirmed on chain.
- Run your job again.
The full list of networks is on the page about which coins and networks you can pay with.
Prevent it in running jobs
Running out halfway through a job leaves partial data and a confusing log. Check the balance before you start and stop early with a clear message, rather than discovering it on task number 4,000:
import requests
def ensure_budget(min_usd, key="YOUR_API_KEY"):
funds = requests.post("https://gatesolver.com/getBalance",
json={"clientKey": key}, timeout=15).json()
if funds.get("errorId"):
raise RuntimeError(f"balance check failed: {funds['errorCode']}")
if funds["balance"] < min_usd:
raise SystemExit(f"balance {funds['balance']:.2f} USD is below {min_usd}, top up first")
return funds["balance"]
Pick min_usd from your expected task count times the price per task of the type you use. The pricing page lists the price per 1,000 for each type, and the page on what the minimum top-up covers shows the arithmetic.
Handle it gracefully when it happens
Treat ERROR_ZERO_BALANCE as a stop condition, not a retry condition. Retrying will not add funds. Pause the job, alert a person, and resume after the top-up. In scheduled jobs, send the alert to the same channel you use for other failures so it is seen quickly.
Why the balance can run down faster than expected
- A more expensive type. reCAPTCHA v3 Enterprise and MTCaptcha cost more per task than v2 or image tasks. A site switching to Enterprise raises your spend without any code change on your side.
- Unused tokens. Tokens solved but never submitted, or solved too early and expired, are still charged because they were solved.
- Duplicate tasks. A bug that creates two tasks per page doubles cost. Compare solved task counts with the number of forms you actually submitted.
Each getTaskResult reply includes a cost field, so logging it per task gives you an exact spend report.
Good to know
Your balance never expires, so topping up a little more than you need is safe. One balance pays for every task type. Failed, unsolvable and expired tasks are not charged, and error responses such as this one are free.
Planning top-ups for steady jobs
For a job that runs every day, track spend for a week using the cost values, then top up enough for a comfortable number of weeks at once. Fewer, larger top-ups mean fewer on-chain fees and fewer interruptions, and because the balance does not expire, there is no penalty for holding extra. Set your low-balance alert at a level that leaves several days of work, so a weekend never stops the job.
Common questions
Is ERROR_ZERO_BALANCE charged?
No. Error responses are free, and no task was created.
Do running tasks stop when my balance hits zero?
No. The error only blocks new tasks; tasks already created continue.
How fast does a top-up appear?
After the payment is confirmed on its network; the time depends on the coin and network you chose.
Can I get an alert before my balance runs out?
Call getBalance at the start of each job or on a timer and alert yourself below a threshold you choose.
Does unused balance expire?
No. Balance never expires and pays for every supported task type.
Keep reading
- Which coins and networks can I pay with?Top-ups accept 25 coin and network combinations, from USDT and USDC on seven chains to BTC, ETH, SOL, TON and XRP.
- How many tasks does the minimum top-up cover?Divide the minimum top-up by a type's price per 1,000 and multiply by 1,000; cheap image tasks stretch it furthest.
- PricingPrice per 1,000 tasks and speed for every CAPTCHA type.
- Does unused balance expire?Balance never expires; it stays on your account until it is spent, and it pays for every supported task type.