Skip to main content

Overview

When using CloudBase, you may encounter various errors. This section will introduce common error codes and how to resolve them.

General Errors

Error CodeDescription
SYS_ERRSystem internal exception
SERVER_TIMEOUTService response timeout
INVALID_APPIDInvalid AppId (WeChat appId or Tencent Cloud appId)
INVALID_ACTIONInvalid API call name
EXCEED_REQUEST_SIZE_LIMITRequest body size exceeds limit
EXCEED_RATELIMITRequest frequency exceeds plan resource limit
INVALID_REQUEST_SOURCEInvalid request source, please check WEB security domain configuration
INVALID_COMMON_PARAMRequest common parameter error
INVALID_PARAMRequest parameter error
SIGN_PARAM_INVALIDInvalid authentication parameters
LOGIN_MANNER_UNREGISTEDThe login method being used has been disabled
APP_SIGN_EXPIREDMobile app signature expired
INVALID_APP_SIGNInvalid mobile app signature or signature format error
INVALID_APP_ACCESSInvalid mobile app access or mobile app version not found
CHECK_LOGIN_FAILEDLogin state verification failed, access token expired (legacy)
ACCESS_TOKEN_EXPIREDAccess token has expired
REFRESH_TOKEN_EXPIREDRefresh token has expired or does not exist
INVALID_REFRESH_TOKENInvalid refresh token
REFRESH_TOKEN_EXHAUSTEDMulti-point login count exceeds limit
INVALID_ENVInvalid environment or environment not found
INVALID_ENV_STATUSInvalid or unavailable environment status
INVALID_ENV_SOURCEInvalid source for mini-program binding to CloudBase environment
RESOURCE_NOT_INITIALCloud resources not initialized or unavailable
EXCEED_REQUEST_LIMITRequest count exceeds limit or plan resources exhausted
EXCEED_CONCURRENT_REQUEST_LIMITConcurrent request limit exceeded
INVALID_OPERATIONInvalid operation, current state (resource, account, etc.) does not allow the corresponding operation
PERMISSION_DENIEDNo operation permission
INVALID_THIRDAPP_STATUSAbnormal status of bound third-party mini-program

Authentication Errors

Error CodeDescription
AUTH_INVALID_CUSTOM_LOGIN_TICKETInvalid custom login credential (format error, 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 Errors

Error CodeDescription
DATABASE_REQUEST_FAILEDDatabase request failed, general database error
DATABASE_INVALID_OPERRATORUnsupported operation or invalid database operator
DATABASE_PERMISSION_DENIEDNo permission to operate database resources
DATABASE_COLLECTION_EXCEED_LIMITDatabase collection count exceeds limit
DATABASE_COLLECTION_NOT_EXISTOperation collection does not exist
DATABASE_COLLECTION_ALREADY_EXISTCollection already exists when creating
DATABASE_TIMEOUTDatabase request timeout
DATABASE_TRANSACTION_FAILDatabase transaction request failed
DATABASE_TRANSACTION_CONFLICTConflict between database transactions
DATABASE_DUPLICATE_WRITEDatabase write failed, duplicate index key (e.g., inserting data with same _id)

Cloud Function Errors

Error CodeDescription
FUNCTIONS_EXECUTE_FAILCloud function execution failed, general cloud function error
FUNCTIONS_TIME_LIMIT_EXCEEDEDCloud function execution timeout
FUNCTIONS_MEMORY_LIMIT_EXCEEDEDCloud function runtime memory limit exceeded
FUNCTION_NOT_FOUNDCloud function not found

Cloud Storage Errors

Error CodeDescription
STORAGE_REQUEST_FAILCloud storage request failed, general cloud storage error
EXCEED_UPLOAD_MAXFILESIZECloud storage upload file size exceeds limit
STORAGE_SIGN_PARAM_INVALIDCloud storage file metadata parsing failed
STORAGE_EXCEED_AUTHORITYCurrent user has no permission to operate cloud storage resources
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 general database, cloud storage request errors, and cloud function request errors respectively, with no special semantics. More detailed error codes with independent characteristic semantics will be refined in the future. Please avoid making special logic judgments based on these error codes.