I’m working on an n8n automation (version 1.100.1 on Cloud) that pulls data from Google Sheets and automatically comments on Reddit posts. The workflow loops through each row in my spreadsheet and posts comments.
What I’m trying to do:
My workflow should read each row from Google Sheets, post the comment to the Reddit post ID specified, wait a bit, then move to the next row.
The issue:
The first comment gets posted successfully (I can see it on Reddit), but then the Reddit node crashes with this error:
TypeError: Cannot read properties of undefined (reading 'things')
This breaks the loop so it never processes the remaining rows.
What I’ve tried:
- Setting the node to “Continue on Error” - this works but feels like a hack
- Double checked my Post ID format (using the fullname like “2919299”)
- Verified my Reddit API has submit, read, and identity permissions
My questions:
- Why does the Reddit node work but then fail when processing the API response?
- How should I fix this loop to handle all rows properly?
- What’s the right way to structure this?
My workflow setup:
- Batch Processing Node - handles one row at a time
{
"parameters": {
"batchSize": 1,
"options": {
"reset": false
}
},
"name": "Process Items",
"type": "n8n-nodes-base.splitInBatches"
}
- Sheet Reader Node - gets the post data
Sample output:
[
{
"row_number": 3,
"Comment": "Thanks for sharing this!",
"Post_Title": "Help with automation",
"Subreddit": "automation",
"Post_ID": "1a2b3c4d"
}
]
- Reddit Comment Node - this is where it fails
{
"parameters": {
"resource": "postComment",
"postId": "={{ $('Process Items').item.json.Post_ID }}",
"commentText": "={{ $('Process Items').item.json.Comment }}"
},
"name": "Post Comment",
"type": "n8n-nodes-base.reddit"
}
- Delay Node - waits between comments
{
"parameters": {
"amount": 45,
"unit": "seconds"
},
"name": "Pause",
"type": "n8n-nodes-base.wait"
}
The error happens right after the comment gets posted successfully. Any ideas on how to fix this or structure the workflow better?