Skip to main content

HTTP Access Service Error Codes

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

General Errors

Error CodeMeaning
BAD_REQUESTThe request data or parameter format is invalid. Please check whether the access domain or Host is correctly filled in, and whether the request header and request body are properly set.
INVALID_REQUESTThe HTTP request does not comply with protocol specifications, or the request parameters are abnormal.
ENV_ABNORMALEnvironment status is abnormal. Please check whether the cloud hosting service and version status are normal.
INVALID_ENVThe environment ID is invalid or no corresponding TCB environment was found
ENV_NOT_READYThe environment resources are not ready yet. Please check whether the environment has been initialized.
ENV_FEATURE_NOT_CONFIGUREDThe target resource for access does not exist in the environment.
INVALID_HOSTInvalid or illegal hostname, possibly due to incorrect domain name entry or DNS resolution issues
INVALID_PATHNo matching forwarding rule found. Please check the forwarding rule configuration of the HTTP access service.
SERVICE_FORBIDDENService is forbidden, possibly due to permission disabled, environment abnormal, or WeChat Cloud Hosting starting up.
HTTPSERVICE_NONACTIVATEDHTTP access service is not enabled
EXCEED_RATELIMITRequest rate exceeds the QPS quota of the purchased package
EXCEED_MAX_PAYLOAD_SIZERequest body size exceeds the limit (6MB for cloud functions, 100MB for others)
BAD_GATEWAYAn error occurred during gateway transmission, and the request forwarding failed
ERR_ABORT_HANDLERRequest processing was aborted, commonly occurs in large model invocations or SSE connection issues
DEFAULT_DOMAIN_EXPIREDThe default domain has expired and needs to be renewed or bound to a custom domain

Authentication and Authorization Errors

Error CodeMeaning
MISSING_CREDENTIALSThe request header is missing required authentication credentials
INVALID_CREDENTIALSAuthentication failed: user credentials verification failed
ACCESS_TOKEN_EXPIREDThe authentication information in the request header has expired
ACCESS_TOKEN_INVALIDThe authentication credentials in the request header are invalid
ACTION_FORBIDDENThe current identity is not authorized to perform this operation
UNSUPPORTED_AUTH_TYPEThe request uses an unsupported authentication type
AUTHENTICATION_FAILEDRequest authentication failed
Error CodeMeaning
SERVICE_NOT_FOUNDCould not find the corresponding cloud hosting service
SERVICE_RESOURCE_NOT_FOUNDThe corresponding resource could not be found. Please check the service and version status
SERVICE_VERSION_NOT_FOUNDCould not find the matching cloud hosting service version
SERVICE_ENDPOINT_NOT_FOUNDNo available upstream endpoint found for the cloud hosting service
SERVICE_LB_STATUS_ABNORMALCloud hosting load balancing status is abnormal
SERVICE_CHARGE_OVERDUEService suspended due to arrears. Please top up promptly
SERVICE_NOT_READYThe cloud hosting service is in an unready state, possibly undergoing a cold start
SERVICE_TIMEOUTCloud hosting service response timeout
Error CodeMeaning
FUNCTION_NOT_FOUNDCould not find the corresponding cloud function
FUNCTION_INVOCATION_FAILEDCloud function invocation timed out or failed
FUNCTION_QUALIFIER_NOT_FOUNDSpecified function version not found
FUNCTION_STATUS_ABNORMALFunction status abnormal
FUNCTION_TIME_LIMIT_EXCEEDEDFunction execution timeout
FUNCTION_MEMORY_LIMIT_EXCEEDEDFunction execution memory exceeds the limit
FUNCTION_EXECUTE_FAILFunction execution failed
FUNCTION_PARAM_INVALIDFunction parameter exception
FUNCTION_EXCEED_RESOURCE_LIMITRequest frequency exceeds the function's provisioned concurrency
Error CodeMeaning
STATIC_RESOURCE_NONACTIVATEDStatic website hosting service not enabled
STATIC_RESOURCE_TOO_MANY_REDIRECTSToo many request redirections; a redirect loop may exist
STATIC_RESOURCE_REQUESTS_FAILEDStatic hosting resource request failed
Error CodeMeaning
STORAGE_EXCEED_AUTHORITYUnauthorized to perform the operation on this object
OBJECT_NOT_EXISTThe requested object does not exist, and the specified operation cannot be performed
OBJECT_ALREADY_EXISTThe object already exists and the specified operation cannot be performed
COS_ACTION_FAILEDObject storage operation failed
CDN_SIGNATURE_MISSINGThe signature for the current access link is missing
CDN_INVALID_SIGNATUREThe signature for the current access link is invalid
CDN_SIGNATURE_EXPIREDThe signature for the current access link has expired
Error CodeMeaning
AI_MODEL_NOT_FOUNDThe specified model group could not be found
AI_MODEL_CONFIG_MISSINGMissing necessary configurations such as API Key for invoking the model
AI_MODEL_REQUEST_FAILEDRequest to large model failed
AI_MODEL_DISABLEDThe model has been disabled
EXCEED_CONCURRENT_REQUEST_LIMITInvoking the large model exceeds the concurrent limit
EXCEED_TOKEN_QUOTA_LIMITThe large model Token usage has exceeded the quota

System Errors

Error CodeMeaning
INTERNAL_REQUEST_FAILInternal system request error
SYS_ERRInternal System Error