Error Handling on 2captcha.com

CAPTCHAFORUM

Administrator
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.
1639774489686.png

1639774499797.png

1639774512826.png

1639774523769.png