I have the following API call, that I can do in Postman no issue… I can also paste into the web, no issue, but creating the same call in n8n consistently gives me a 403 error…
What is the error message (if any)?
403 - "<html>\r\n<head><title>403 Forbidden</title></head>\r\n<body>\r\n<center><h1>403 Forbidden</h1></center>\r\n</body>\r\n</html>\r\n"
Request
{ "headers": { "user-agent": "n8n", "accept": "application/json" }, "method": "GET", "uri": "https://mobile.fmcsa.dot.gov/qc/services/carriers/2591066/?webKey=8fc080abfa6e1bc887849e73b95d5c077c0d02b5\", "gzip": true, "rejectUnauthorized": true, "followRedirect": true, "resolveWithFullResponse": true, "followAllRedirects": true, "maxRedirects": 21, "timeout": 300000, "encoding": null, "json": false, "useStream": true }
Please share your workflow
Using the GET HTTP request I configure as follows:
“headers”: {
“User-Agent”: “n8n”,
“Accept”: “application/json”
“followRedirects”: true
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
{
“nodes”: [
{
“parameters”: {
“url”: “https://mobile.fmcsa.dot.gov/qc/services/carriers/2591066/?webKey=8fc080abfa6e1bc887849e73b95d5c077c0d02b5”,
“sendHeaders”: true,
“headerParameters”: {
“parameters”: [
{
“name”: “User-Agent”,
“value”: “n8n”
},
{
“name”: “Accept”,
“value”: “application/json”
}
]
},
“options”: {
“redirect”: {
“redirect”: {}
}
}
},
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.2,
“position”: [
-300,
-80
],
“id”: “f8901f77-ee08-45d9-a436-c0a059f2665e”,
“name”: “HTTP Request”,
“executeOnce”: false
}
],
“connections”: {},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “aca0339c46cbee6ca406d5c0ca26494bdeeb44f859838f9696b124c5037e2bd7”
}
}
Share the output returned by the last node
Information on your n8n setup
- n8n version: - 1.77.3
- Database (default: SQLite): none
- n8n EXECUTIONS_PROCESS setting (default: own, main): own
- Running n8n via (Docker, npm, n8n cloud, desktop app):. n8n cloud
- Operating system:. Mac OS