Describe the problem/error/question
Hello everyone,
I’m running into an issue with the AWS Lambda node in n8n and hoping someone can help or share advice.
It seems like the Lambda node in n8n has a built-in timeout of 5 minutes, regardless of the timeout settings configured in AWS for the Lambda function itself. My current Lambda function needs to run for longer than 5 minutes because it waits for other APIs to respond inside the Lambda. When I trigger the function from the AWS console, everything works fine and the function completes successfully, even if it takes longer than 5 minutes.
However, when I run the same Lambda from an n8n workflow, I consistently get a timeout error after 5 minutes.
What is the error message (if any)?
Problem in node ‘AWS Lambda‘
The connection was aborted, perhaps the server is offline
{
“errorMessage”: “The connection was aborted, perhaps the server is offline”,
“errorDetails”: {
“rawErrorMessage”: [
“timeout of 300000ms exceeded”,
“timeout of 300000ms exceeded”
],
“httpCode”: “ECONNABORTED”
},
“n8nDetails”: {
“nodeName”: “AWS Lambda”,
“nodeType”: “n8n-nodes-base.awsLambda”,
“nodeVersion”: 1,
“operation”: “invoke”,
“time”: “9/22/2025, 12:47:54 PM”,
“n8nVersion”: “1.111.0 (Self Hosted)”,
“binaryDataMode”: “default”,
“stackTrace”: [
“NodeApiError: The connection was aborted, perhaps the server is offline”,
" at ExecuteContext.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_08b575bec2313d5d8a4cc75358971443/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1472:10)“,
" at ExecuteContext.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_08b575bec2313d5d8a4cc75358971443/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1758:11)”,
" at ExecuteContext.awsApiRequest (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_afd197edb2c1f848eae21a96a97fab23/node_modules/n8n-nodes-base/nodes/Aws/GenericFunctions.ts:35:10)“,
" at ExecuteContext.awsApiRequestREST (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_afd197edb2c1f848eae21a96a97fab23/node_modules/n8n-nodes-base/nodes/Aws/GenericFunctions.ts:49:19)”,
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_afd197edb2c1f848eae21a96a97fab23/node_modules/n8n-nodes-base/nodes/Aws/AwsLambda.node.ts:178:26)“,
" at WorkflowExecute.executeNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_08b575bec2313d5d8a4cc75358971443/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1254:8)”,
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_08b575bec2313d5d8a4cc75358971443/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1428:11)“,
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_08b575bec2313d5d8a4cc75358971443/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1760:27”,
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_08b575bec2313d5d8a4cc75358971443/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2337:11"
]
}
}
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version: 1.111.0
- Database (default: SQLite): PostgreSQL
- n8n EXECUTIONS_PROCESS setting (default: own, main): Not explicitly configured (defaults to “main”
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: Linux
