Gmail draft unsupported content type

Describe the problem/error/question

Problem with using gmail node for sending or create draft with text or html type, always the same error : Unsupported content type: text/html; charset=utf-8 (item 0)

What is the error message (if any)?

{
“errorMessage”: “Unsupported content type: text/html; charset=utf-8 (item 0)”,
“errorDetails”: {
“rawErrorMessage”: [
“Unsupported content type: text/html; charset=utf-8”
]
},
“n8nDetails”: {
“nodeName”: “Gmail”,
“nodeType”: “n8n-nodes-base.gmail”,
“nodeVersion”: 2.1,
“resource”: “message”,
“operation”: “send”,
“itemIndex”: 0,
“time”: “28/04/2025 00:51:18”,
“n8nVersion”: “1.89.2 (Self Hosted)”,
“binaryDataMode”: “default”,
“stackTrace”: [
“NodeOperationError: Unsupported content type: text/html; charset=utf-8 (item 0)”,
" at ExecuteContext.execute (/usr/lib/node_modules/n8n/node_modules/n8n-nodes-base/nodes/Google/Gmail/v2/GmailV2.node.ts:809:11)“,
" at processTicksAndRejections (node:internal/process/task_queues:95:5)”,
" at WorkflowExecute.runNode (/usr/lib/node_modules/n8n/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1156:9)“,
" at /usr/lib/node_modules/n8n/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1508:27”,
" at /usr/lib/node_modules/n8n/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2065:11"
]
}
}

Please share your workflow

{
“nodes”: [
{
“parameters”: {},
“type”: “n8n-nodes-base.manualTrigger”,
“typeVersion”: 1,
“position”: [
0,
0
],
“id”: “6d39ea9c-f955-4887-b740-c156a1edb613”,
“name”: “When clicking ‘Test workflow’”
},
{
“parameters”: {
“sendTo”: “[email protected]”,
“subject”: “Test”,
“emailType”: “text”,
“message”: “Hello World”,
“options”: {}
},
“type”: “n8n-nodes-base.gmail”,
“typeVersion”: 2.1,
“position”: [
220,
0
],
“id”: “083c8336-55eb-4209-a254-e0e1776bebbb”,
“name”: “Gmail”,
“webhookId”: “88996a06-0a1e-4a24-8920-59a23c0002d5”,
“credentials”: {
“gmailOAuth2”: {
“id”: “Y8I07CAakH04g24F”,
“name”: “Gmail account”
}
}
}
],
“connections”: {
“When clicking ‘Test workflow’”: {
“main”: [
[
{
“node”: “Gmail”,
“type”: “main”,
“index”: 0
}
]
]
},
“Gmail”: {
“main”: [

]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “10a8535f96f0d11bd656e2787e19e63fbf6a1a664014ca5594957046c66521bb”
}
}

Share the output returned by the last node

Unsupported content type: text/html; charset=utf-8 (item 0)

Information on your n8n setup

  • **n8n version: 1.89.2
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via npm
  • **Operating system: LXC/ Proxmox

Hi @Olivier_HAIES

Your workflow is working on my side!

Could you share more information?

1 Like

Hello, thanks for response but i still have the problem with text or html. See my workflow with same data as you and still the same error : {
“nodes”: [
{
“parameters”: {},
“type”: “n8n-nodes-base.manualTrigger”,
“typeVersion”: 1,
“position”: [
0,
0
],
“id”: “6d39ea9c-f955-4887-b740-c156a1edb613”,
“name”: “When clicking ‘Test workflow’”
},
{
“parameters”: {
“sendTo”: “[email protected]”,
“subject”: “Test”,
“message”: “Hello World”,
“options”: {}
},
“type”: “n8n-nodes-base.gmail”,
“typeVersion”: 2.1,
“position”: [
220,
0
],
“id”: “083c8336-55eb-4209-a254-e0e1776bebbb”,
“name”: “Gmail”,
“webhookId”: “88996a06-0a1e-4a24-8920-59a23c0002d5”,
“credentials”: {
“gmailOAuth2”: {
“id”: “Y8I07CAakH04g24F”,
“name”: “Gmail account”
}
}
}
],
“connections”: {
“When clicking ‘Test workflow’”: {
“main”: [
[
{
“node”: “Gmail”,
“type”: “main”,
“index”: 0
}
]
]
},
“Gmail”: {
“main”: [

]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “10a8535f96f0d11bd656e2787e19e63fbf6a1a664014ca5594957046c66521bb”
}
}

It uses to work weeks ago, I don’t understand and i’m going crazy. I updated my gmail credential but with no result.

This is completely wrong!!!

There are only two options [text, html] , Here is the screenshot

You are absolutely right

I checked to see if it was possible to manipulate it using javascript and ended up posting the wrong image.

Sorry about that @Olivier_HAIES and @mohamed3nan

I found solution, delete and recreate from scratch my gmail credentials. Thanks for your help.

1 Like