Skip to main content

Overview

When using CloudBase, you may encounter various errors. This section introduces 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 packet size exceeds limit
EXCEED_RATELIMITRequest frequency exceeds package 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 parameter
LOGIN_MANNER_UNREGISTEDThe login method used has been disabled
APP_SIGN_EXPIREDMobile application signature expired
INVALID_APP_SIGNInvalid mobile application signature, signature format error
INVALID_APP_ACCESSInvalid mobile application access, mobile application 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 limit exceeded
INVALID_ENVInvalid environment, environment not found
INVALID_ENV_STATUSInvalid environment status, unavailable
INVALID_ENV_SOURCEMini program bound CloudBase environment source is invalid
RESOURCE_NOT_INITIALCloud resource initialization incomplete, cloud resource unavailable
EXCEED_REQUEST_LIMITRequest count limit exceeded, package resources exhausted
EXCEED_CONCURRENT_REQUEST_LIMITRequest concurrency limit exceeded
INVALID_OPERATIONInvalid operation, current state (resource, account, etc.) does not allow corresponding operation
INVALID_THIRDAPP_STATUSBound third-party mini program status abnormal
RESOURCE_NOT_FOUNDResource not found
EXCEED_MAX_RESPONSE_SIZEMaximum response size exceeded
INVALID_REGIONInvalid region
INVALID_HOSTInvalid host
REQUEST_CANCELEDRequest was canceled
REQUEST_FORBIDDENRequest is forbidden to access
EXCEED_AUTHORITYAuthority limit exceeded
RequestLimitExceededRequest limit exceeded
INVALID_REQUESTHTTP request does not conform to protocol specification, or request parameter exception
BAD_REQUESTBad request, request aborted or invalid JSON received
PERMISSION_DENIEDPermission denied, unauthenticated access or insufficient permissions
ENV_ABNORMALEnvironment status abnormal, please check if CloudRun service and version status are normal
ENV_NOT_READYEnvironment resources are not ready yet, please check if environment initialization is complete
ENV_FEATURE_NOT_CONFIGUREDTarget resource accessed does not exist in environment
INVALID_PATHNo matching forwarding rule found, please check HTTP access service forwarding rule configuration
SERVICE_FORBIDDENService is disabled, may be due to permission closure, environment exception, or WeChat CloudRun starting
HTTPSERVICE_NONACTIVATEDHTTP access service not enabled
EXCEED_MAX_PAYLOAD_SIZERequest body size exceeds limit (Cloud Function 6MB, others 100MB)
BAD_GATEWAYGateway transmission error occurred, request forwarding failed
ERR_ABORT_HANDLERRequest processing interrupted, common in large model calls or SSE connection issues
DEFAULT_DOMAIN_EXPIREDDefault domain has exceeded usage validity period, requires renewal or bind custom domain
INTERNAL_REQUEST_FAILSystem internal request error

Authentication Errors

Error CodeDescription
AUTH_INVALID_CUSTOM_LOGIN_TICKETInvalid custom login credential (format error, expired, validation failed, etc.)
AUTH_WX_OAUTH_FAILEDWeChat OAuth failed
AUTH_CUSTOM_USER_ID_HAS_BEEN_BOUNDCustomUserId is already associated with account
AUTH_OPEN_ID_HAS_BEEN_BOUNDopenId is already associated with account
AUTH_UNION_ID_HAS_BEEN_BOUNDunionId is already associated with account
AUTH_EMAIL_HAS_BEEN_BOUNDemail is already associated with account
INVALID_EMAIL_TOKENEmail activation token expired or does not exist
AUTH_LOGIN_FAILEDLogin failed
INVALID_ACCESS_TOKENInvalid access token
ACCESS_TOKEN_DISABLEDAccess token has been disabled
REFRESH_TOKEN_DISABLEDRefresh token has been disabled
PHONE_CODE_NOT_MATCHEDPhone verification code does not match
PHONE_CODE_NOTFOUND_OR_EXPIREDPhone verification code not found or expired
PHONE_CODE_SEND_LIMIT_EXCEEDPhone verification code send limit exceeded
MISSING_CREDENTIALSMissing necessary authentication information in request header
INVALID_CREDENTIALSAuthentication failed, user information validation failed
ACCESS_TOKEN_INVALIDAuthentication information in request header is invalid
ACCESS_TOKEN_KID_INVALIDAccess token Key ID (kid) is invalid
ACTION_FORBIDDENCurrent identity has no permission to execute this operation
WX_WEBSOCKET_TOKEN_EXPIREDWeChat WebSocket connection token has expired
WX_HEADER_GET_FAILEDFailed to get WeChat request header
UNSUPPORTED_AUTH_TYPERequest uses unsupported authentication type
AUTHENTICATION_FAILEDRequest authentication failed

Database Errors

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

Cloud Function Errors

Error CodeDescription
FUNCTIONS_EXECUTE_FAILCloud function execution failed, cloud function general error
FUNCTIONS_TIME_LIMIT_EXCEEDEDCloud function execution timeout
FUNCTIONS_MEMORY_LIMIT_EXCEEDEDCloud function running memory limit exceeded
FUNCTION_NOT_FOUNDCloud function not found
FUNCTIONS_STATUS_ABNORMITYCloud function status abnormal
FUNCTION_INVOCATION_FAILEDCalling cloud function timeout or failed
FUNCTION_QUALIFIER_NOT_FOUNDSpecified function version to access does not exist
FUNCTION_STATUS_ABNORMALFunction status abnormal
FUNCTION_TIME_LIMIT_EXCEEDEDFunction execution timeout
FUNCTION_MEMORY_LIMIT_EXCEEDEDFunction execution memory limit exceeded
FUNCTION_EXECUTE_FAILExecute function failed
FUNCTION_PARAM_INVALIDParameter exception when calling function
FUNCTION_EXCEED_RESOURCE_LIMITRequest frequency exceeds function provisioned concurrency
Error CodeDescription
SERVICE_NOT_FOUNDCorresponding CloudRun service not found
SERVICE_RESOURCE_NOT_FOUNDCorresponding resource not found, please check service and version status
SERVICE_VERSION_NOT_FOUNDCannot find matching CloudRun service version
SERVICE_ENDPOINT_NOT_FOUNDCannot find available upstream address for CloudRun service
SERVICE_LB_STATUS_ABNORMALCloudRun load balancer status abnormal
SERVICE_CHARGE_OVERDUEService suspended due to overdue payment, please recharge in time
SERVICE_NOT_READYCloudRun service in not ready state, may be cold starting
SERVICE_TIMEOUTCloudRun service response timeout

Cloud Storage Errors

Error CodeDescription
STORAGE_REQUEST_FAILCloud storage request failed, cloud storage general error
EXCEED_UPLOAD_MAXFILESIZECloud storage upload file size limit exceeded
STORAGE_SIGN_PARAM_INVALIDCloud storage file metadata parsing failed
STORAGE_EXCEED_AUTHORITYCurrent user has no permission to operate cloud storage resource
STORAGE_FILE_NONEXISTCloud storage file does not exist
STORAGE_FILE_PATH_CONFLICTCloud storage file path conflict
OBJECT_NOT_EXISTRequested object does not exist, cannot execute specified operation
OBJECT_ALREADY_EXISTObject already exists, cannot execute specified operation
OBJECT_BATCH_TOO_LARGEToo many objects in single batch operation
COS_ACTION_FAILEDObject storage operation execution failed
CDN_SIGNATURE_MISSINGSignature missing for current access link
CDN_INVALID_SIGNATURESignature incorrect for current access link
CDN_SIGNATURE_EXPIREDSignature expired for current access link
Error CodeDescription
STATIC_RESOURCE_NONACTIVATEDStatic website hosting service not enabled
STATIC_RESOURCE_TOO_MANY_REDIRECTSToo many request redirects, possible redirect loop
STATIC_RESOURCE_REQUESTS_FAILEDRequest for static hosting resource failed
Error CodeDescription
AI_MODEL_NOT_FOUNDSpecified model group not found
AI_MODEL_CONFIG_MISSINGMissing necessary configuration for calling model such as API Key
AI_MODEL_REQUEST_FAILEDRequest to large model failed
AI_MODEL_DISABLEDModel has been disabled
EXCEED_TOKEN_QUOTA_LIMITLarge model Token usage has exceeded quota
APIs_GET_OPENAPI_SCHEMA_ERRORFailed to get OpenAPI Schema
Note

DATABASE_REQUEST_FAILED, STORAGE_REQUEST_FAIL, FUNCTIONS_EXECUTE_FAIL are general database, cloud storage request errors, and cloud function request errors respectively, with no special semantics. More refined error codes with independent characteristic semantics will be introduced in the future. Please avoid making special logic judgments based on these error codes.