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