Skip to main content

Cloud Development Error Codes

tip

🌟 Having issues with CloudBase? Click here to consult Cloud Development Copilot, which is ready to answer your questions anytime. 📱 WeChat CloudBase users please log in via Mini Program Official Account.

General Errors

Error CodeDescription
SYS_ERRInternal system exception
SERVER_TIMEOUTService response timeout
INVALID_APPIDInvalid AppId (WeChat appId or Tencent Cloud appId)
--
INVALID_ACTIONThe invoked interface name is invalid
EXCEED_REQUEST_SIZE_LIMITRequest packet size exceeds the limit
EXCEED_RATELIMITRequest frequency exceeds the service plan's resource limit
INVALID_REQUEST_SOURCEInvalid request source. Check the WEB Security Domain Configuration and other settings.
INVALID_COMMON_PARAMRequest common parameter error
INVALID_PARAMRequest parameter error
SIGN_PARAM_INVALIDInvalid authentication parameter
LOGIN_MANNER_UNREGISTEDThe login method used has been disabled.
APP_SIGN_EXPIREDMobile application signature expired
INVALID_APP_SIGNInvalid or malformed mobile application signature
INVALID_APP_ACCESSInvalid mobile application access or mobile application version not found
CHECK_LOGIN_FAILEDLogin status verification failed, access token expired (deprecated)
ACCESS_TOKEN_EXPIREDaccess token expired
REFRESH_TOKEN_EXPIREDrefresh token expired or does not exist
INVALID_REFRESH_TOKENInvalid refresh token
REFRESH_TOKEN_EXHAUSTEDConcurrent login limit exceeded
INVALID_ENVInvalid environment or environment not found
INVALID_ENV_STATUSInvalid environment status, unavailable
INVALID_ENV_SOURCEInvalid source for Mini Program-bound CloudBase environment
RESOURCE_NOT_INITIALCloud resources not initialized or unavailable
EXCEED_REQUEST_LIMITNumber of requests exceeds the limit or service plan resources exhausted
EXCEED_CONCURRENT_REQUEST_LIMITConcurrent request limit exceeded
INVALID_OPERATIONInvalid operation: the current state (resources, accounts, etc.) does not allow this operation
PERMISSION_DENIEDOperation not permitted
INVALID_THIRDAPP_STATUSInvalid bound third-party Mini Program status

Login Authentication

Error CodeDescription
AUTH_INVALID_CUSTOM_LOGIN_TICKETCustom login ticket invalid (incorrect format, expired, verification failed, etc.)
AUTH_WX_OAUTH_FAILEDWeChat OAuth failed
AUTH_CUSTOM_USER_ID_HAS_BEEN_BOUNDCustomUserId has been bound to an account
AUTH_OPEN_ID_HAS_BEEN_BOUNDopenId has been bound to an account
AUTH_UNION_ID_HAS_BEEN_BOUNDunionId has been bound to an account
AUTH_EMAIL_HAS_BEEN_BOUNDemail has been bound to an account
INVALID_EMAIL_TOKENEmail activation token expired or does not exist
AUTH_LOGIN_FAILEDLogin failed

Cloud Database

Error CodeDescription
DATABASE_REQUEST_FAILEDCloud database request failed: generic error
DATABASE_INVALID_OPERRATORUnsupported operation, invalid database operator
DATABASE_PERMISSION_DENIEDPermission denied to access cloud database resources
DATABASE_COLLECTION_EXCEED_LIMITCloud database collection limit exceeded
DATABASE_COLLECTION_NOT_EXISTCollection does not exist
DATABASE_COLLECTION_ALREADY_EXISTCollection already exists during creation
DATABASE_TIMEOUTCloud database request timeout
DATABASE_TRANSACTION_FAILCloud database transaction request failed
DATABASE_TRANSACTION_CONFLICTCloud database transaction conflict
DATABASE_DUPLICATE_WRITEDatabase write failed: duplicate key (e.g., inserting data with the same _id)

Cloud Function

Error CodeDescription
FUNCTIONS_EXECUTE_FAILCloud Function execution failed (generic error)
FUNCTIONS_TIME_LIMIT_EXCEEDEDCloud Function execution timeout
FUNCTIONS_MEMORY_LIMIT_EXCEEDEDCloud Function memory limit exceeded
FUNCTION_NOT_FOUNDCloud Function not found

Cloud Storage

Error CodeDescription
STORAGE_REQUEST_FAILCloud Storage request failed: generic error
EXCEED_UPLOAD_MAXFILESIZECloud Storage upload file size exceeds the limit
STORAGE_SIGN_PARAM_INVALIDCloud Storage file metadata parsing failed
STORAGE_EXCEED_AUTHORITYThe current user has insufficient permissions to operate Cloud Storage resources. Please check the Cloud Storage permission configuration
STORAGE_FILE_NONEXISTCloud Storage file does not exist
STORAGE_FILE_PATH_CONFLICTCloud Storage file path conflict
Note

The DATABASE_REQUEST_FAILED, STORAGE_REQUEST_FAIL, and FUNCTIONS_EXECUTE_FAIL` are generic error codes for cloud database, cloud storage, and cloud function requests respectively. They do not convey specific meanings. In the future, we will refine them into error codes with distinct semantic characteristics. Please avoid implementing special logic based on these error codes.