My curl command works OK directly on windows command, and also on ‘bruno’ platform. After importing the same curl command to the node, I got error 403.
What is the error message (if any)?
“forbidden - perhaps check your credentials? 403403 forbidden”.
since the same credentials works OK in my direct curl command and ‘bruno’, I really don’t think it is a credential issue. Is this a node config problem please?
Sadly, you’ve masked the authorization header (as you should), so none of us can test it to verify. Your only bet is to try using a different endpoint with some other service and see if you’re able to request data with that.
OR if you’re willing to DM me the token, I can verify it as well, however I won’t recommend this flow unless you have a read-only test account credential that you can share.
I have just tried another end point, same error 403, however same curl command works OK in CMD windows directly, cannot figure out why. WHat else should I try please?
I am getting this from the output, does these indicate that my Auth token is successfully passed and rejected by the server please? Many thanks,
Item Index
0
Node type
n8n-nodes-base.httpRequest
Node version
4.2 (Latest)
n8n version
1.80.3 (Cloud)
Time
2/27/2025, 6:45:42 PM
Stack trace
NodeApiError: Forbidden - perhaps check your credentials? at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js:525:33) at processTicksAndRejections (node:internal/process/task_queues:95:5) at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:627:19) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:878:51 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:1211:20
We’d really need a test API endpoint where we can try this. I have played around with several requests myself and they all work well.
Maybe the reason for the 403 is different? Maybe the user agent is the problem? Or the IP? If you control the server, have you tried checking the server logs?