Skip to main content

Cloud Development Error Codes

tip

🌟 Encountering Cloud Development issues? Click here to consult Cloud Development Copilot, ready to answer your questions at any time. 📱 WeChat Cloud Development users, please select the Mini Program Official Account to log in.

General Errors

Error CodeMeaning
SYS_ERRsystem internal exception
SERVER_TIMEOUTservice response timeout
INVALID_APPIDInvalid AppId (WeChat appId or Tencent Cloud appId)
--
INVALID_ACTIONInvalid interface name invoked
EXCEED_REQUEST_SIZE_LIMITRequest packet size limit exceeded
EXCEED_RATELIMITRequest frequency exceeds the plan resource limit
INVALID_REQUEST_SOURCEInvalid request source. Please check the WEB security domain configuration and other configurations.
INVALID_COMMON_PARAMInvalid common parameters
INVALID_PARAMInvalid parameters
SIGN_PARAM_INVALIDInvalid authentication parameters
LOGIN_MANNER_UNREGISTEDThe login method used has been disabled.
APP_SIGN_EXPIREDMobile application signature expired
INVALID_APP_SIGNMobile application signature is invalid or malformed
INVALID_APP_ACCESSInvalid mobile application access, mobile application version not found
CHECK_LOGIN_FAILEDLogin status verification failed, access token expired (legacy)
ACCESS_TOKEN_EXPIREDaccess token expired
REFRESH_TOKEN_EXPIREDrefresh token expired or does not exist
INVALID_REFRESH_TOKENInvalid refresh token
REFRESH_TOKEN_EXHAUSTEDMultiple logins exceed the allowed number
INVALID_ENVInvalid environment, environment not found
INVALID_ENV_STATUSInvalid or unavailable environment status
INVALID_ENV_SOURCEInvalid source of CloudBase environment bound to Mini Program
RESOURCE_NOT_INITIALCloud resources have not been initialized or are unavailable
EXCEED_REQUEST_LIMITRequest limit exceeded, plan resources exhausted
EXCEED_CONCURRENT_REQUEST_LIMITConcurrent request limit exceeded
INVALID_OPERATIONInvalid operation. The current state (of resources, account, etc.) does not allow the corresponding operation.
PERMISSION_DENIEDPermission denied
INVALID_THIRDAPP_STATUSAbnormal status of bound third-party Mini Program

Login Authentication

Error CodeMeaning
AUTH_INVALID_CUSTOM_LOGIN_TICKETInvalid custom login credentials (malformed, 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

Database

Error CodeMeaning
DATABASE_REQUEST_FAILEDDatabase request failed, generic database error
DATABASE_INVALID_OPERRATORUnsupported operation, invalid database operator
DATABASE_PERMISSION_DENIEDDatabase operation permission denied
DATABASE_COLLECTION_EXCEED_LIMITDatabase collection count exceeds the limit
DATABASE_COLLECTION_NOT_EXISTCollection does not exist
DATABASE_COLLECTION_ALREADY_EXISTCollection already exists when creating a collection
DATABASE_TIMEOUTDatabase request timeout
DATABASE_TRANSACTION_FAILDatabase transaction request failed
DATABASE_TRANSACTION_CONFLICTTransaction conflict
DATABASE_DUPLICATE_WRITEDatabase write failed, duplicate key (e.g., inserting data with the same _id)

Cloud Function

Error CodeMeaning
FUNCTIONS_EXECUTE_FAILCloud function execution failed, general cloud function 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 CodeMeaning
STORAGE_REQUEST_FAILCloud storage request failed, generic cloud storage error
EXCEED_UPLOAD_MAXFILESIZECloud storage upload file size limit exceeded
STORAGE_SIGN_PARAM_INVALIDCloud storage file metadata parsing failed
STORAGE_EXCEED_AUTHORITYThe current user has no permission 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

DATABASE_REQUEST_FAILED, STORAGE_REQUEST_FAIL, and FUNCTIONS_EXECUTE_FAIL are generic database request errors, cloud storage request errors, and cloud function request errors respectively, with no specific semantics. In the future, we will refine error codes with distinct semantic features. Please avoid implementing special logic based on these error codes.