Issue with n8n Reddit Comment Automation
I have a workflow in n8n that pulls data from Google Sheets and automatically posts comments on Reddit posts. The workflow processes each row from my spreadsheet and should comment on the corresponding Reddit post.
What Should Happen
The automation should go through each row in my sheet, post the comment to the Reddit post ID, pause for some time, then move to the next row.
The Problem
The first comment gets posted successfully to Reddit, but then n8n throws this error:
TypeError: Cannot read properties of undefined (reading 'things')
Even though the comment actually appears on Reddit, the node fails and stops the whole loop from continuing.
What I Already Tried
Setting Continue on Error: This lets the loop finish but seems like a hack rather than fixing the real issue.
Checking Post IDs: I’m using the right fullname format for post IDs.
API Permissions: My Reddit app has all the right scopes and I can post manually.
My Workflow Setup
Here’s how my nodes are configured:
Batch Processing Node:
{
"parameters": {
"batchSize": 1,
"options": {
"reset": false
}
},
"name": "Process Items",
"type": "n8n-nodes-base.splitInBatches"
}
Reddit Comment Node:
{
"parameters": {
"resource": "postComment",
"postId": "={{ $('Process Items').item.json.PostID }}",
"commentText": "={{ $('Process Items').item.json.CommentText }}"
},
"name": "Post Reddit Comment",
"type": "n8n-nodes-base.reddit"
}
Delay Node:
{
"parameters": {
"amount": 45,
"unit": "seconds"
},
"name": "Pause",
"type": "n8n-nodes-base.wait"
}
Questions
- Why does the Reddit node work but then fail to handle the response properly?
- How can I fix this workflow to run reliably for all items?
- Should I add different nodes to handle this better?
Any help would be awesome!