Autoapprove Reddit posts

:pushpin: Describe the problem/error/question

I am trying to automatically approve a Reddit post using the Reddit API via the HTTP Request node in n8n. The OAuth2 credentials are correctly configured, and I have successfully validated both the access token and the scopes (identity read submit edit modposts modlog).

  • Node 1: Validates the OAuth2 token β†’ :white_check_mark: Success
  • Node 2: Validates moderator permissions β†’ :white_check_mark: Success
  • Node 3: Tries to approve the post β†’ :x: Fails with 403 Forbidden

Despite valid credentials, correct scopes, and a properly structured payload, the 403 Forbidden error persists.

:hammer_and_wrench: What I’ve already checked:

  • :white_check_mark: OAuth2 scopes in credentials β†’ Correct (identity read submit edit modposts modlog)
  • :white_check_mark: Moderator permissions β†’ Confirmed as full moderator (all)
  • :white_check_mark: Manual API Test with curl β†’ Works fine
  • :white_check_mark: Rate limits β†’ Not reached

I suspect either:

  • An issue with how n8n handles the OAuth2 token in the HTTP Node.
  • A subtle configuration issue in the API call or headers.

:pushpin: What is the error message (if any)?

json

{
  "error": {
    "message": "403 - \"{\\\"message\\\": \\\"Forbidden\\\", \\\"error\\\": 403}\"",
    "name": "AxiosError",
    "code": "ERR_BAD_REQUEST",
    "status": 403
  },
  "headers": "No headers",
  "body": "No body",
  "statusCode": "No Status Code"
}

:pushpin: Please share your workflow

json


:pushpin: Share the output returned by the last node

json

[
  {
    "error": {
      "message": "403 - \"{\\\"message\\\": \\\"Forbidden\\\", \\\"error\\\": 403}\"",
      "name": "AxiosError",
      "stack": "AxiosError: Request failed with status code 403\n at settle (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/settle.js:19:12)\n at RedirectableRequest.handleResponse (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/adapters/http.js:547:9)\n at RedirectableRequest.emit (node:events:531:35)\n at RedirectableRequest._processResponse (/usr/local/lib/node_modules/n8n/node_modules/follow-redirects/index.js:409:10)\n at ClientRequest.RedirectableRequest._onNativeResponse (/usr/local/lib/node_modules/n8n/node_modules/follow-redirects/index.js:102:12)\n at Object.onceWrapper (node:events:634:26)\n at ClientRequest.emit (node:events:519:28)\n at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:702:27)\n at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17)\n at TLSSocket.socketOnData (node:_http_client:544:22)\n at TLSSocket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at TLSSocket.Readable.push (node:internal/streams/readable:390:5)\n at TLSWrap.onStreamRead (node:internal/stream_base_commons:191:23)",
      "code": "ERR_BAD_REQUEST",
      "status": 403
    },
    "headers": "No headers",
    "body": "No body",
    "statusCode": "No Status Code"
  }
]

:pushpin: Information on your n8n setup

  • n8n version: 1.73.1
  • Database: SQLite
  • n8n EXECUTIONS_PROCESS setting: default (own)
  • Running n8n via: Docker
  • Operating system: Ubuntu 22.04

:white_check_mark: Summary of Analysis So Far:

  • OAuth2 scopes are correct (identity read submit edit modposts modlog).
  • Moderator status is confirmed as all.
  • Manual curl API test works as expected.
  • The issue occurs specifically in the n8n HTTP Request Node.

:rocket: Question to the Community:

  • Are there known issues with how n8n’s HTTP Node interacts with Reddit’s OAuth2 API?
  • Are there specific header or configuration requirements that might be missing?

Any insights would be greatly appreciated. Thank you for your support! :blush:

Here all 3 nodes, first two work, last not. autoapprove doesnt work eigther.

json

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:
  • n8n version: 1.73.1
  • Database: SQLite
  • n8n EXECUTIONS_PROCESS setting: default (own)
  • Running n8n via: Docker
  • Operating system: Ubuntu 22.04

did anyone experiance this issue or has a solution for it? :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.