AWS SES NodeApiError: UNKNOWN ERROR

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

Hey @bregt.vrt,

Welcome to the community :tada:

Thanks for reporting this one I am going to give it a test this afternoon to see if I can reproduce it.

Hi Jon,

I have the same error when i’m using AWS SES Node even without sending html. I just tried to send a simple email and I got the error.

Hey @dawesf,

Are you seeing the same error or something similar? Are you able to share the workflow you are using?

Hi Jon,

yes, I got the same error.
But reading online it may be a problem with the AWS account which now is in sandbox.
Anyway i attach you my sample flow and the error i get when i execute de ASW SES Node.


Hey @dawesf,

Looking at what you are sending the error is very different, The report on this one was large emails triggering the error.

If it is down to a sandbox account that could explain it, I will get some testing done anyway to see what I can find.

Hi Jon,

now my aws account is out of the sandbox, but i still get the error.
I can’t understand why, and why i don’t have any spoken feedback error.

Here is what I receive when I try to run the simple flow.

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:27: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:42: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:590:53


Can you help me to understand how to proced?

Hey @dawesf

What version of n8n are you running and can you share the full workflow?

Hi Jon,

the version of n8n is 0.218.0.
The flow contains just a start node and a AWS SES node.

Hey @dawesf,

I have just given the node a test and it is still working as expected, Have you made sure that your From Email is a verified identity in SES? If I set a different from address I get the same message.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.