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.
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.
Check whether a time-consuming logic branch, such as a CPU-intensive branch, is accessed.