All Products
Search
Document Center

Function Compute:What do I do if a function execution times out and "Function time out after" is reported?

Last Updated:Oct 22, 2024

The following items list the possible causes for function invocation timeouts and corresponding troubleshooting methods:

  • The execution time of the function code exceeds the value of the Execution Timeout Period parameter. We recommend that you increase the value of the Execution Timeout Period parameter. For more information, see Update a function.

    image

  • Check the function logic and configure the logging feature. Check whether the execution timeout occurs when another API operation is called. You can configure request-level metric logs for services. You can also Click Enable on the Logs tab to enable logging.

    image

    image

  • Check whether a time-consuming logic branch, such as a CPU-intensive branch, is accessed.