Hey, new to n8n. Creating a simple email summarizer. Facing an issue with fetching messages using a gmail node (Oauth has been set up successfully] where I constantly get the following error: **Invalid URL (item 0). Following is the stack trace:
**
{
“errorMessage”: “Invalid URL (item 0)”,
“errorDetails”: {
“rawErrorMessage”: [
“Invalid URL”
]
},
“n8nDetails”: {
“nodeName”: “Gmail”,
“nodeType”: “n8n-nodes-base.gmail”,
“nodeVersion”: 2.1,
“resource”: “message”,
“operation”: “getAll”,
“itemIndex”: 0,
“time”: “30/12/2025, 18:43:44”,
“n8nVersion”: “1.97.1 (Self Hosted)”,
“binaryDataMode”: “default”,
“stackTrace”: [
“NodeOperationError: Invalid URL (item 0)”,
" at ExecuteContext.execute (/Users/kanjambhatlidhoo/.npm/_npx/a8a7eec953f1f314/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 (/Users/kanjambhatlidhoo/.npm/_npx/a8a7eec953f1f314/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1185:9)“,
" at /Users/kanjambhatlidhoo/.npm/_npx/a8a7eec953f1f314/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1534:27”,
" at /Users/kanjambhatlidhoo/.npm/_npx/a8a7eec953f1f314/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2098:11"
]
}
}
Just wondering what the issue might as I did not find it in the questions already asked. Any help is appreciated.
Hi @Kanjam_Lidhoo,
Please can you share your workflow in a code block so we can have a better view of your current setup
Hey Nigrini,
No worries it was solved. Just required an update for n8n and node packages. Thanks!