Skip to content
solvepass
Back to blog
OperationsNovember 15, 20264 min

What to log when a captcha solve fails

A task ID is not enough. The useful failure record separates API failure, solver failure, and target rejection.

Three different failures

An API failure means the request never became a task: bad parameters, no credits, a rate limit. A solver failure means the task existed but did not produce a solution: timeout, proxy error, unsupported challenge. A target rejection means the API returned a solution and the target refused it.

If you log all three as captcha failed, you cannot tell whether to fix your request, your proxy, or your expectation of the target.

The fields that answer the question

Log the request ID, task ID, type, status, error code, latency, and price. Add the target's response code and the page URL. For proxy tasks, log the proxy country and a hash of the proxy host, never the credentials.

solve-failure.jsonjson
{
  "request_id": "req_01J...",
  "task_id": "task_01J...",
  "type": "cloudflare_challenge",
  "status": "failed",
  "error_code": "proxy_error",
  "latency_ms": 8420,
  "price_micros": 3500,
  "proxy_country": "DE",
  "proxy_host_hash": "sha256:...",
  "page_url": "https://example.com/login",
  "target_status": null
}

When the target rejects a token

Record the target's response status and the field you filled. If the target returns a validation message, keep it. Do not keep the token itself. Report the task through the API within the window so the refund path can evaluate it.

For Challenge, record whether the replay used the same proxy and user agent. Most rejections are an identity mismatch, not a bad cookie.

Alert on rates, not single events

A single failure is noise. Alert when the success rate for a type drops below its baseline, when p95 latency doubles, or when one error code becomes the top failure. Those are the signals that something changed upstream.

  • Track success rate by type and by proxy country.
  • Track p50 and p95 latency separately.
  • Count insufficient credits and rate limits as product signals.
  • Keep a sample of target rejection messages, not tokens.

Related