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 β
Success
- Node 2: Validates moderator permissions β
Success
- Node 3: Tries to approve the post β
Fails with
403 Forbidden
Despite valid credentials, correct scopes, and a properly structured payload, the 403 Forbidden
error persists.
What Iβve already checked:
OAuth2 scopes in credentials β Correct (
identity read submit edit modposts modlog
)Moderator permissions β Confirmed as full moderator (
all
)Manual API Test with
curl
β Works fineRate 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.
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"
}
Please share your workflow
json
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"
}
]
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
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.
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!
Here all 3 nodes, first two work, last not. autoapprove doesnt work eigther.
json