All Products
Search
Document Center

Captcha:Client-side initialization errors

Last Updated:Mar 31, 2026

The CAPTCHA initialization API fetches CAPTCHA resources using a request that includes your user tag (prefix). Requests are sent to xxxxx.captcha-open.aliyuncs.com, where xxxxx is your user tag. To get your user tag, see Activate Captcha Service.

A successful initialization response looks like this:

image.png

API error codes

When initialization fails, the API returns one of the following error codes:

Error codeTypeDescription and fix
IllegalUserTagConfigurationThe user tag (prefix) parameter is invalid. See Activate Captcha Service to confirm the value is passed correctly.
Important

This error applies only to Web and H5 client integration and App client integration — not WeChat mini program integration.

IllegalCertifyIdConfigurationThe certifyId (UserCertifyId) format is invalid. The required format is: [user tag (prefix)]_[10-digit string of uppercase letters, lowercase letters, and digits]. For code samples, see UserCertifyId parameter code samples.
IllegalSceneConfigurationThe scene ID (SceneId) parameter is invalid. Confirm the SceneId value is correct and that the scene was created under the account associated with the user tag (prefix).
Forbidden.AccountAccessDeniedAccountThe account has an overdue payment. Check that the account status is Normal.
ThrottlingRate limitingThe number of queries per second (QPS) exceeds the product limit. If you require a higher QPS, contact your account manager in advance for confirmation.
ThrottlingByStrategyRate limitingThe initialization request rate limit was triggered. This is a security mechanism that blocks attempts to traverse the CAPTCHA question library by sending requests at a high frequency.

Parameter validation errors

If a parameter value is invalid, initialization fails with a field-level error. The following table lists each affected field and how to fix it:

FieldDescription and fix
General type verificationThe parameter type is invalid. See Parameter description and pass a value of the correct type.
languageThe language parameter value is invalid. See Languages supported by Captcha 2.0 for valid values.
regionThe region parameter value is invalid. See region parameter description for requirements.
modeThe mode parameter value is invalid. Supported values are popup and embed. See mode parameter description for details.
element/buttonThe element or button element does not exist on the page, or the parameter value does not match the ID selector of the element on the page. Confirm that the element exists and that the parameter matches its ID selector.

Field

Error message

General type validation

An input parameter has an invalid data type. See the Parameter descriptions for the correct data types.

language

The language parameter is invalid. For a list of supported values, see Languages supported by Captcha 2.0.

region

The region parameter is invalid. See the region parameter description for its requirements.

mode

The mode parameter is invalid. Supported values are popup and embed. See the mode parameter description for more information.

element/button

The element or button parameter is invalid. Ensure its value is a valid ID selector for an element that exists on the page.