Hi Guys
This seems to be an issue related to how a binary file is fed from Drive to Gmail as an attachment.
I’m encouraged by the lead in that “No question is too stupid” and I’m probably in that category
Describe the problem/error/question
I have a workflow that is triggerred by a webhook then appends a Google Drive file (PDF) as an attachment and emails it back to the sender. After some work on the learning cure this now works (I get the attachment in my email account) but n8n reports that the execution has has an error.
What is the error message (if any)?
The error message says
" Cannot read properties of undefined (reading ‘split’) (item 0)"
Please share your workflow
Internal Error
**Error details**
From Gmail
Full message
Cannot read properties of undefined (reading 'split') (item 0)
Other info
Item Index
0
Node type
n8n-nodes-base.gmail
Node version
2.1 (Latest)
n8n version
1.57.0 (Self Hosted)
Time
9/16/2024, 10:23:30 AM
Stack trace
NodeOperationError: Cannot read properties of undefined (reading 'split') (item 0) at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/Gmail/v2/GmailV2.node.js:549:23) at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:728:42) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:673:66 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1104:20
(Sorry but I cannot figure out how to place this screen image)
Information on your n8n setup
- n8n version: 1.57.0
- Database : SQLLite
- n8n EXECUTIONS_PROCESS setting (default: own, main):**
- Running n8n via Docker
- Operating system:Ubuntu 22.04