Hello,
I can connect 1 Gmail account via n8n and it works great, but I have another account that refuses to connect. I’ve accepted permissions & confirmed that Gmail has them as “approved”
Here’s the error:
{
“errorMessage”: “Cannot read properties of undefined (reading ‘includes’)”,
“errorDetails”: {},
“n8nDetails”: {
“n8nVersion”: “1.72.1 (Cloud)”,
“binaryDataMode”: “filesystem”,
“stackTrace”: [
“TypeError: Cannot read properties of undefined (reading ‘includes’)”,
" at PollContext.poll (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/Gmail/GmailTrigger.node.js:257:50)“,
" at processTicksAndRejections (node:internal/process/task_queues:95:5)”,
" at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:760:32)“,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:724:51”,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1155:20"
]
}
}
Edits: I have integrated this email account with other services, like Zapier for example and it has worked fine.
The account that is working gets this when doing oauth2 the one that is failing doesn’t.
the gmail node for “Get Many” works.