Describe the issue/error/question
We’re trying to send an HTML email from n8n workflow using AWS SES node. When body size is smaller than 8192 bytes we can successfully send the email, but when the body size exceeds this limit with a single byte, we receive error
What is the error message (if any)?
NodeApiError: UNKNOWN ERROR - check the detailed error for more information
at Object.awsApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Aws/SES/GenericFunctions.js:24:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at Object.awsApiRequestSOAP (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Aws/SES/GenericFunctions.js:39:22)
at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Aws/SES/AwsSes.node.js:925:40)
at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:658:28)
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:585:53
Please share the workflow
I replaced all private information with placeholders (example.com)
{
“meta”: {
“instanceId”: “2940bcb64ed65d1e05fd7e5b9fdeb5bd55a3753bce9a5b8cb8dfaed68ddd3f79”
},
“nodes”: [
{
“parameters”: {},
“id”: “0b071657-c4c9-428a-84d1-195664a07383”,
“name”: “When clicking \“Execute Workflow\“”,
“type”: “n8n-nodes-base.manualTrigger”,
“typeVersion”: 1,
“position”: [
-180,
-160
]
},
{
“parameters”: {
“values”: {
“string”: [
{
“name”: “subsUrl”,
“value”: “example.com/testsubs.csv”
},
{
“name”: “jsonUrl”,
“value”: “example.com/newsletter.json”
},
{
“name”: “templateUrl”,
“value”: “example.com/templ.njk”
}
]
},
“options”: {}
},
“id”: “48b6a74f-6319-4f81-9a26-7902dc91823d”,
“name”: “Set”,
“type”: “n8n-nodes-base.set”,
“typeVersion”: 1,
“position”: [
80,
-160
]
},
{
“parameters”: {
“url”: “=example.com/generateHtml?contentUri={{ $node[\“Set\“].json[\“jsonUrl\“] }}&templateUri={{ $node[\“Set\“].json[\“templateUrl\“] }}“,
“options”: {}
},
“id”: “02387c92-c9f0-4c84-99d6-a15b59ee403d”,
“name”: “Get HTML”,
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 3,
“position”: [
1080,
-160
],
“executeOnce”: false
},
{
“parameters”: {
“options”: {}
},
“id”: “b7c782b4-571d-436c-a8db-1c76e08f910b”,
“name”: “subs”,
“type”: “n8n-nodes-base.spreadsheetFile”,
“typeVersion”: 1,
“position”: [
580,
-160
]
},
{
“parameters”: {
“operation”: “aggregateItems”,
“fieldsToAggregate”: {
“fieldToAggregate”: [
{
“fieldToAggregate”: “email”
}
]
},
“options”: {}
},
“id”: “f7ef4142-b7d0-4849-a4cf-dd829143ab60",
“name”: “Item Lists”,
“type”: “n8n-nodes-base.itemLists”,
“typeVersion”: 1,
“position”: [
840,
-160
]
},
{
“parameters”: {
“url”: “={{ $node[\“Set\“].json[\“subsUrl\“] }}“,
“options”: {
“response”: {
“response”: {
“responseFormat”: “file”
}
}
}
},
“id”: “ecc5cd87-1c23-4022-804b-46a7b3c1b3a1”,
“name”: “GET Subs”,
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 3,
“position”: [
320,
-160
]
},
{
“parameters”: {
“isBodyHtml”: true,
“subject”: “Test newsletter from n8n”,
“body”: “={{ $node[\“Get HTML\“].json[\“data\“] }}“,
“fromEmail”: “[email protected]”,
“toAddresses”: [
“[email protected]”,
[]
],
“additionalFields”: {
“replyToAddresses”: [
“[email protected]”
]
}
},
“id”: “504ad5f9-5ffa-44b1-bf76-940391de80b1”,
“name”: “AWS SES”,
“type”: “n8n-nodes-base.awsSes”,
“typeVersion”: 1,
“position”: [
1320,
-160
],
“credentials”: {
“aws”: {
“id”: “25”,
“name”: “AWS account UserSVC-n8n”
}
}
}
],
“connections”: {
“When clicking \“Execute Workflow\“”: {
“main”: [
[
{
“node”: “Set”,
“type”: “main”,
“index”: 0
}
]
]
},
“Set”: {
“main”: [
[
{
“node”: “GET Subs”,
“type”: “main”,
“index”: 0
}
]
]
},
“Get HTML”: {
“main”: [
[
{
“node”: “AWS SES”,
“type”: “main”,
“index”: 0
}
]
]
},
“subs”: {
“main”: [
[
{
“node”: “Item Lists”,
“type”: “main”,
“index”: 0
}
]
]
},
“Item Lists”: {
“main”: [
[
{
“node”: “Get HTML”,
“type”: “main”,
“index”: 0
}
]
]
},
“GET Subs”: {
“main”: [
[
{
“node”: “subs”,
“type”: “main”,
“index”: 0
}
]
]
}
}
}
Share the output returned by the last node
output is error code provided above
Information on your n8n setup
- n8n version: 0.216.0
- Database you’re using Postgres:
- Running n8n with the execution process default(?):
- Running n8n via Docker