How-To

414 Request-URI Too Large in n8n's Amazon SES node: fix

The error 414 Request-URI Too Large in n8n's AWS SES node means a server in the path refused a request whose URL was too long, which a long HTML body can cause when it travels in the URL. Send through the SES v2 API with an HTTP Request node, or use SES SMTP.

Sohail HussainSohail Hussain9 min read

Short answer

  • A 414 means a server refused the request because the URL was too long, so the HTML is very likely being sent in the URL instead of in a request body.
  • Stop using the SES node for that email. Call the SES v2 SendEmail API from an HTTP Request node, which puts the HTML in a JSON body, or send through the SES SMTP endpoint with the Send Email node.
  • Shrinking the HTML only delays the problem. Treat it as a stopgap.

You built a workflow in n8n, the AWS SES node works with a short test message, and then a real newsletter-sized template fails with this:

414 Request-URI Too Large

People report the failure starting at roughly 10,000 characters of HTML. The n8n GitHub issue that describes it does not show a confirmed fix, so I can't tell you which n8n version, if any, changed the node's behavior. The workarounds below don't depend on an upgrade.

Why it happens

414 is an HTTP status code, not an SMTP code. A web server or a proxy in front of it refused the request because the URL (the request line) was longer than it will process. Nothing reached SES for delivery, so no email was sent and you won't find a bounce.

The symptom pattern is short emails working and long HTML failing. That fits the message content traveling in the URL's query string. I can't confirm that from the issue itself, so treat it as the most likely cause, not a proven one.

URL encoding makes it worse. Each space, quote, angle bracket and newline in your HTML becomes a sequence like %20, so 10,000 characters of HTML can be much longer once it sits in a URL. Servers and proxies cap URL length, and the cap differs by server.

A POST body doesn't have this problem. That is why every fix below moves the HTML into a body or into the SMTP data stream.

CauseSymptomFix
Node puts the message in the query stringShort HTML works, long HTML fails near the same sizeFix 1 or Fix 2
Your own reverse proxy limits the request lineError appears in the proxy log, not from AWSCheck proxy limits, then still use Fix 1
HTML bloated by inline styles and base64 imagesFailure appears after a template redesignFix 3 as a stopgap

Confirm it is the URL and not something else

  1. Run the same node with a one-paragraph HTML body. If it succeeds, length is the trigger.
  2. Grow the body in steps until it fails. If the cutoff lands near the same size every time, you are hitting a URL limit.
  3. If you self-host n8n behind a reverse proxy, read the proxy's error log. A proxy such as nginx can return a 414 on its own when the request line exceeds its buffer settings. Raising the buffer only moves the ceiling, because the HTML would still ride in the URL.
  4. Look at the response body. If it carries AWS error markup, the limit was hit on the AWS side; if it carries your proxy's error page, the proxy answered.

Not a delivery problem

A 414 is a request-size error that happens before SES accepts anything. Sender reputation, DKIM and spam filtering are not involved at this stage.

Fix 1: call the SES v2 API from an HTTP Request node

This is the route I'd use. The SES v2 SendEmail operation is a POST to /v2/email/outbound-emails with a JSON body, so message length no longer affects URL size.

  1. Add an HTTP Request node where the SES node was.
  2. Set Method to POST.
  3. Set URL to your region's API endpoint. AWS publishes the list in its General Reference; for US East (N. Virginia) it is email.us-east-1.amazonaws.com. For example:
https://email.us-east-1.amazonaws.com/v2/email/outbound-emails
  1. Under Authentication, choose Predefined Credential Type, pick AWS, and select your AWS credential. Set the service to ses and make the region match the URL.
  2. Turn on Send Body, set Body Content Type to JSON, and use a body like this:
{
  "FromEmailAddress": "sender@example.com",
  "Destination": {
    "ToAddresses": ["recipient@example.net"]
  },
  "Content": {
    "Simple": {
      "Subject": { "Data": "Your subject", "Charset": "UTF-8" },
      "Body": {
        "Html": { "Data": "<html>...your long HTML...</html>", "Charset": "UTF-8" },
        "Text": { "Data": "Plain-text version", "Charset": "UTF-8" }
      }
    }
  }
}

If the HTML comes from an earlier node, build the body with an expression and let n8n do the JSON escaping. Unescaped quotes and line breaks are a common reason this call returns a 400.

A few SES rules apply however you call it. The From address has to be verified, and your IAM user needs permission for ses:SendEmail. If the account is still in the SES sandbox, recipients must be verified as well. A successful call returns an HTTP 200 response with a MessageId.

Accepted is not delivered

AWS notes that SES can accept a message without sending it, for example when a templated email has invalid personalization content. A 200 and a MessageId mean accepted, so check your SES sending events if the mail never arrives.

Fix 2: send through SES SMTP

If you would rather not hand-write API calls, use SES as an SMTP relay. The message travels in the SMTP data stream, so there is no URL to overflow.

  1. In the SES console, open SMTP settings and create SMTP credentials. These are separate from your normal IAM access keys. AWS documents the steps in its page on obtaining SES SMTP credentials using IAM; see Obtaining Amazon SES SMTP credentials using IAM.
  2. In n8n, create an SMTP credential with your region's SES SMTP host, for example email-smtp.us-east-1.amazonaws.com. AWS lists SMTP endpoints per region in the General Reference, and not every region has one.
  3. Pick the port and encryption pair that matches. AWS says STARTTLS works on port 25, 587, or 2587 and TLS Wrapper works on port 465 or 2465. In n8n that means port 587 with SSL/TLS off, or port 465 with it on. If the difference is unclear, read SSL/TLS for email.
  4. Add the Send Email node, select that credential, and send your long HTML.

Avoid port 25 from cloud servers. AWS notes that sending from an EC2 instance on port 25 can time out because EC2 restricts it by default, and that ports 465 and 587 are not restricted.

The trade-off is that SMTP gives you less SES-specific control than the API, such as per-message options. Check the SES documentation if you rely on configuration sets.

Fix 3: shrink the HTML

Use this only if you can't restructure the workflow today. Newsletter HTML is often bloated by inline styles repeated on every element, long tracking parameters and base64-embedded images. Moving images to hosted URLs and deleting unused markup can bring a message well under the failing size. The next template revision can push you back over, so plan to move to Fix 1 or Fix 2.

Keep a plain-text part

Whichever route you pick, send a plain-text version alongside the HTML. It costs little and is a normal part of well-formed marketing email.

Checklist before you try again

  • The node that sends is an HTTP Request or Send Email node, not the SES node.
  • The HTML is in a JSON body field, not in query parameters.
  • The AWS credential region matches the endpoint URL.
  • The From address or domain is verified in that same region.
  • Your IAM user can call ses:SendEmail (API route) or you created SES SMTP credentials (SMTP route).
  • You tested with your longest real template, not a one-line sample.

If nothing works

First read what the new error says. If the HTTP Request node still returns a 414, the HTML is probably still going out as query parameters; open Send Query Parameters and make sure it is off. A 400 usually means bad JSON escaping, and a 403 points at credentials, region or IAM permissions. Those are progress, because the 414 is gone.

If you suspect an n8n bug, report it to n8n on their GitHub issue tracker or community support. If you suspect AWS, use AWS Support. Include the n8n version, whether it is cloud or self-hosted, any proxy in front of n8n, the approximate length of the failing HTML, and the exact response body.

Subject: 414 Request-URI Too Large from the AWS SES node with long HTML

Hello,

The AWS SES node in n8n fails with "414 Request-URI Too Large" when the
HTML body is longer than about 10,000 characters. Short bodies send fine.

n8n version: {version}
Hosting: {cloud or self-hosted}, reverse proxy: {none / nginx / other}
Node: AWS SES (send email), region {region}
Approximate HTML length: {characters}
Timestamp of last failure (UTC): {timestamp}
Already tried: shorter HTML (works), HTTP Request node to SES v2 SendEmail
(result: {result})

Please confirm whether the node sends the message in the URL and whether
a fix is planned.

Common questions

Can I just raise the URL limit on my proxy?

Only if your own proxy is the one returning the 414. Even then you are making the URL longer instead of removing the cause, and other servers on the path can still refuse it.

Is there a maximum email size on SES itself?

Yes, and it is far above 10,000 characters. AWS's SES API documentation states that the maximum message size is 10 MB, so the 414 comes from how the request is built, not from SES message limits.

Does the SMTP route cost more than the API?

I don't have SES pricing from a source for this article, so check AWS's current pricing page. Both routes send through the same SES account and are subject to the same sandbox and verification rules.

Will upgrading n8n fix it?

I can't say. The issue does not show a confirmed fix, so read the release notes for your version and test with your longest template before relying on an upgrade.

strategyamazon-ses-n8nerror-codes
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

Building Mailneo — AI-powered email marketing for growing businesses.

Related Articles

How-To

Access denied, bad outbound sender: Outlook cold email fix

"Access denied, bad outbound sender" (550 5.1.8) means Microsoft 365 has put your mailbox on its restricted users list for spam-like sending. An admin must unblock it under Restricted entities in the Microsoft Defender portal. Then clean your list, lower your volume and resume gradually.

Sohail Hussain|9 min read
How-To

Acoustic Campaign "Application error" on login: bookmark fix

Acoustic Campaign shows "application error" at login when you open it from a bookmark saved while you were logged in, because the bookmark carries the old session. Log out, type your pod URL (campaign-us-[X].goacoustic.com) into the address bar, log in, then save a fresh bookmark.

Sohail Hussain|8 min read
How-To

ActiveCampaign 502 Bad Gateway and Tags Failed to Load: Fixes

"Bad gateway Error code 502" in ActiveCampaign means Cloudflare, the proxy in front of the app, got no valid response from ActiveCampaign's servers. That is usually their side. Check the status page, retry in a clean browser session, clear cookies, then send support the Ray ID if it persists.

Sohail Hussain|8 min read
How-To

ActiveCampaign campaign stuck on "Pending review": what to do

A campaign stuck on "Pending review" in ActiveCampaign is being held on the vendor's side, and you can't release it from your account. Escalate by email, check the status page, ask any reseller or agency contact to push it through, and keep a backup sender ready for urgent mail.

Sohail Hussain|8 min read

Ready to supercharge your email marketing?

Start sending smarter emails with AI-powered campaigns. No credit card required.

Get Started Free