N8N times out for WordPress API
-
I'm able to access https://www.****.com/wp-json/wp/v2/dealers from a browser or Postman but not from an HTTP Request node using get. It just times out. I've tried with authentication and without. My WordPress credentials don't seem to work either. I generated an app password for my user, but it rejects it with:
Couldn’t connect with these settings
ETIMEDOUTThis is a public URI anyway, so it should need authentication, right?
The connection timed out, consider setting the 'Retry on Fail' option in the node settings
Error detailsFrom HTTP Request
Error codeETIMEDOUT
Full message
connect ETIMEDOUT 64.34.166.70: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://www.****.com/wp-json/wp/v2/posts", "gzip": true, "rejectUnauthorized": true, "followRedirect": true, "resolveWithFullResponse": true, "followAllRedirects": true, "timeout": 300000, "encoding": null, "json": false, "useStream": true }
Other info
Item Index0
Node type
n8n-nodes-base.httpRequest
Node version
4.2 (Latest)
n8n version
1.55.3 (Self Hosted)
Time
9/9/2024, 9:49:22 PM
Stack trace
NodeApiError: The connection timed out, consider setting the 'Retry on Fail' option in the node settings at Object.execute (/app/code/node_modules/n8n-nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts:1892:15) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Workflow.runNode (/app/code/node_modules/n8n-workflow/src/Workflow.ts:1384:8) at /app/code/node_modules/n8n-core/src/WorkflowExecute.ts:1072:27 at /app/code/node_modules/n8n-core/src/WorkflowExecute.ts:1794:11
EDIT:
Could Cloudron possibly have these addresses blacklisted?
https://community.n8n.io/t/http-request-timeout-issue-with-an-api-but-works-fine-on-postman/12572/2
https://docs.n8n.io/manage-cloud/cloud-ip/ -
Cloudron itself does not block any servers as such. Can you reach those from the server via SSH and then check if you can reach those via the webterminal into the app container just to get some overview of where the issue might be. You can test with the following command:
curl -v https://www.omrto.com/wp-json/wp/v2/posts
-
-
@nebulon I ran the curl command from the root user via SSH and from the terminal inside the N8N app and in both cases it said:
root@localhost:~# curl -v --no-tcp-nodelay https://www.****.com/wp-json/wp/v2/posts
- Trying ...:443...
- connect to ... port 443 failed: Connection timed out
- Failed to connect to www.omrto.com port 443: Connection timed out
- Closing connection 0
curl: (28) Failed to connect to www.omrto.com port 443: Connection timed out
-