If an error code is returned after the function is executed, you can find the cause and solution for the error code by referring to the following table.
Status Code and Status Message | Description | Solution |
---|---|---|
200 Success |
The execution is successful. | - |
400 InvalidParameterValue |
The input parameters are incorrect. | The parameter does not conform to the specification. Please modify it as instructed in Introduction and try again. |
401 InvalidCredentials |
The verification fails. | The verification fails. Your account does not have the permission to manipulate this function. Please check the permission and try again. For more information, please see the authorization description in Permission Management Overview. |
404 InvalidSubnetID |
The subnet ID is invalid. | Check whether the network configuration of the function is correct and whether the subnet ID is valid. |
406 RequestTooLarge |
The request body size is too large. | The request event size exceeds the upper limit, which is 6 MB for sync request events or 128 KB for async ones. |
429 ResourceLimit |
The container request rate is too high. | The container request rate is too high. Please try again later. |
430 User code exception caught |
A user code execution error occurs. | Based on the error log on the console, check the error stack of the code and see whether the code can be executed properly. |
432 ResourceLimitReached |
The concurrence limit is reached. | Container resource usage exceeds the upper limit (the number of concurrent functions * 2). Please adjust the code or submit a ticket to increase the function concurrency limit. |
433 TimeLimitReached |
The function execution times out. |
|
434 MemoryLimitReached |
The memory limit is reached. |
|
435 FunctionNotFound |
The function is not found. | Check whether the function is deleted or whether the function information that is used as the input parameter is correct. |
436 InvalidParameterValue |
The parameter is invalid. | The parameter does not conform to the specification. Please modify it as instructed in Introduction and try again. |
437 HandlerNotFound |
The function package is loaded incorrectly. | The function entry file is not found. Please check whether the entry file name in the code package matches the handler settings and whether the code package is normal. For more information on the handler, please see Execution method. |
438 FunctionStatusError |
The SCF service is suspended because the Tencent Cloud account is in arrears. | The SCF service is suspended because the Tencent Cloud account is in arrears. Please top up and try again. |
439 User preocess exit when running |
The user process exits accidentally. | Based on the error message, find out the cause and fix the function code. |
441 UnauthorizedOperation |
CAM authentication fails. | Check whether the CAM authentication parameters for the function invoker are passed correctly. For more information, please see the authorization description in Permission Management Overview. |
442 QualifierNotFound |
The specified version is not found. | The function version does not exist. Please check the function version and try again. |
443 UserCodeError |
A user code execution error occurs. | Based on the error log on the console, check the error stack of the code and see whether the code can be executed properly. | 450 UserResourceTimeOut |
The user code container times out. | The user code container times out (15s). Please check the code and try again. If the problem persists, please submit a ticket. |
500 InternalError |
An internal error occurs. | An internal error occurs. Please try again later. If the problem persists, please submit a ticket. |
The execution method specifies the starting file and function while invoking the cloud function as shown below:
For Go programming, use the FileName format, such as main
.
For Python, Node.js, or PHP programming, use the FileName.FunctionName format, such as index.main_handler
.
.py
, and for Node.js programming, the file name extension is .js
. For more information, please see "Execution Method" in Basic Concepts. For Java programming, use the package.class::method format, such as example.Hello::mainHandler
.
For the Custom Runtime environment, a non-fixed format can be used based on the custom programming language implementation.
Was this page helpful?