In the HTTP Request node of n8n results in the following error: From HTTP Request Error code ETIMEDOUT

The following request works fine when executed via a browser: https://newsapi.org/v2/everything?q=tesla&from=2025-03-29&sortBy=publishedAt&apiKey=XXXXXX

However, testing it separately in the HTTP Request node of n8n results in the following error: From HTTP Request Error code ETIMEDOUT Full message: connect ETIMEDOUT 2a03:2880:f107:83:face:b00c:0:25de:443

Request:
{
“headers”: {
“accept”: “application/json,text/html,application/xhtml+xml,application/xml,text/;q=0.9, image/;q=0.8, /;q=0.7”
},
“method”: “GET”,
“uri”: “https://newsapi.org/v2/everything?q=tesla&from=2025-03-29&sortBy=publishedAt&apiKey=xxxxxxxxx”,
“gzip”: true,
“rejectUnauthorized”: true,
“followRedirect”: true,
“resolveWithFullResponse”: true,
“followAllRedirects”: true,
“timeout”: 300000,
“encoding”: null,
“json”: false,
“useStream”: true
}

Assuming you are running n8n in docker, you could test to see if it is something in n8n or in your docker environment by running wget in n8n’s docker container.

docker exec -ti n8n wget -O - https://httpbin.org/get
docker exec -ti n8n wget -O - https://newsapi.org/v2/everything?q=tesla&from=2025-03-29&sortBy=publishedAt&apiKey=xxxxxxxxx

This assumes your n8n docker container is named n8n. Find it with docker container ls if not.