n8n Reddit Integration Error After Successful Comment Creation

I’m working on an n8n automation (version 1.100.1 on Cloud) that reads data from Google Sheets and creates comments on Reddit posts automatically using a loop structure.

What I’m trying to do:

My workflow should go through each row in a Google Sheet, create a comment on the specified Reddit post, pause for a bit, then continue to the next row until all comments are posted.

The issue I’m facing:

Everything works perfectly for the first comment. I can see it posted on Reddit successfully. But then the Reddit comment creation node throws this error and stops the whole process:

TypeError: Cannot read properties of undefined (reading 'things')

The weird part is that the comment actually gets created on Reddit, but n8n still shows an error and won’t continue to the next item in the loop.

What I’ve already tried:

  • Setting the error handling to “Continue” which lets the loop finish, but this seems like a hack.
  • Double checked my Post ID format (using the correct fullname like 2919299).
  • Verified my Reddit API permissions include submit, read, and identity scopes.

My questions:

  1. Why does the Reddit node work but then fail when processing the response?
  2. How should I properly set up this loop to handle all items reliably?
  3. What additional nodes or settings might help?

Current workflow setup:

  1. Batch Processing Node - handles one sheet row at a time
{
  "parameters": {
    "batchSize": 1,
    "options": {
      "reset": false
    }
  },
  "name": "Process Items",
  "type": "n8n-nodes-base.splitInBatches",
  "typeVersion": 3
}
  1. Sheet Reader Node - gets the comment data
    Sample output:
[
  {
    "row_id": 8,
    "reply_text": "Sample reply content",
    "original_content": "Sample post content",
    "community": "automation",
    "post_title": "Sample Title",
    "score": 23,
    "link": "https://reddit.com",
    "post_id": "SAMPLE123"
  }
]
  1. Reddit Comment Node - this is where it fails
{
  "parameters": {
    "resource": "postComment",
    "postId": "={{ $('Process Items').item.json.post_id }}",
    "commentText": "={{ $('Process Items').item.json.reply_text }}"
  },
  "name": "Add Reddit Comment",
  "type": "n8n-nodes-base.reddit",
  "typeVersion": 1
}
  1. Delay Node - pauses between comments
{
  "parameters": {
    "amount": 45,
    "unit": "seconds"
  },
  "name": "Pause",
  "type": "n8n-nodes-base.wait",
  "typeVersion": 1.1
}

The full error shows:

{
  "errorMessage": "Cannot read properties of undefined (reading 'things')"
}

Any ideas on what might be causing this or how to make the loop more reliable? Thanks for any help!

I ran into the same thing building Reddit automations. The problem is n8n’s Reddit node expects a specific response structure, but Reddit doesn’t always return it consistently. The ‘things’ property should be there according to Reddit’s API docs, but sometimes you get malformed or incomplete responses even when the action works.

Here’s what fixed it for me: add a Set node right after the Reddit comment node to grab just the essential data before the error hits. That way your workflow keeps running without depending on Reddit’s flaky response structure.

Also, try exponential backoff instead of fixed delays. Reddit’s rate limiting is all over the place - 45 seconds might work sometimes but not others, depending on your account and how much you’ve been hitting the API.

yeah, sounds like a glitch with the API respnse. try using an HTTP request node to get the raw response from reddit. this’ll help with error handling and let you inspect that ‘things’ property if needed. good luck!