Error Handling on 2captcha.com

#1
It's very important to use proper error handling in your code to avoid suspension of your account and service interruption.

Take a look on debugging method provided by our API. It can help you to identify the root or the error.

  1. Normally if something is wrong with your request server will return an error.
    Below you can find tables with lists of errors with descriptions:
  2. Errors can be returned as plain text or as JSON if you provided json=1 parameter.
    In very rare cases server can return HTML page with error text like 500 or 502 - please keep it in mind and handle such cases correctly.
    If you received anything that doesn't looks like the answer or error code - make a 5 seconds timeout and then retry your request.

cf0a80360a[1].png
fcdb843b2e[1].png

b6c3697939[1].png
4bf40cda18[1].png