Status |
The status of each script. If you configured a script for an accelerated domain name, the script can be in one of the following states after a client request arrives at a CDN point of presence (POP):
- NonExecution
The script is not executed. For example, the script is set to be executed at the foot of the pipeline. This indicates that the script is executed only after all other scripts are executed. However, a request may be completed before it reaches the foot of the pipeline. For example, the request may be redirected or blocked by hotlink protection. In this case, the script at the foot of the pipeline is not executed.
- ExecutedAndHit
The script is executed and the execution result is return true. This indicates that the request matches the logic in the script.
- ExecutedButNotHit
The script is executed but the execution result is not return true. This indicates that the request does not match the logic in the script. For example, the script does not contain a return true statement or the script automatically returns a return false result.
- Exception
An error occurred while Alibaba Cloud CDN is executing the script. In most cases, the error is caused by logical errors in the script or timeouts of script execution. For example, a parameter that is passed to the request is set to an invalid value or Alibaba Cloud CDN is executing the script for more than 50 milliseconds. You can add the
_es_dbg extension to the script and use the debugging tool in the upper-right corner of the EdgeScript page to debug the code. Then, you can use the debugging information to fix the error. For more information about how to add the _es_dbg extension, see
Use the console to configure scripts.
Note You can set _es_dbg to any value. Client requests must contain the same value. For example, if you set _es_dbg to 123 in the Alibaba Cloud CDN console, client requests must also contain _es_dbg=123.
|
Exceptions |
An error occurred when Alibaba Cloud CDN is executing the script. In this case, an error code is returned. Error codes and descriptions:
- 400: The script contains an unsupported function.
- 401: The number of parameters that are expected by the function is invalid.
- 402: The type of string does not match the type that is specified in the function.
- 403: The type of digit does not match the type that is specified in the function.
- 404: The type of dictionary does not match the type that is specified in the function.
- 405: The Boolean type does not match the type that is specified in the function.
- 406: The type of function does not match the type that is specified in the function.
- 407: The script timed out.
- 408: The number of times that Alibaba Cloud CDN has executed scripts has reached the upper limit.
- 409: The number of times that the script is looped has reached the upper limit.
- 410: The number of times that the script is looped has reached the upper limit.
- 499: An unknown error occurred.
|