Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. N8N
  3. N8N times out for WordPress API

N8N times out for WordPress API

Scheduled Pinned Locked Moved Solved N8N
5 Posts 2 Posters 1.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    overholt
    wrote on last edited by overholt
    #1

    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
    ETIMEDOUT

    This 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 details

    From HTTP Request
    Error code

    ETIMEDOUT

    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 Index

    0

    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/

    1 Reply Last reply
    1
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #4

      So then this is not really n8n related. If you can curl other things fine but only not omrto.com then maybe they have blocked you or some other firewall in between blocks it. Cloudron does at least not block such connections as such.

      O 1 Reply Last reply
      0
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #2

        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
        
        O 1 Reply Last reply
        1
        • nebulonN nebulon marked this topic as a question on
        • nebulonN nebulon

          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
          
          O Offline
          O Offline
          overholt
          wrote on last edited by overholt
          #3

          @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
          1 Reply Last reply
          0
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #4

            So then this is not really n8n related. If you can curl other things fine but only not omrto.com then maybe they have blocked you or some other firewall in between blocks it. Cloudron does at least not block such connections as such.

            O 1 Reply Last reply
            0
            • nebulonN nebulon

              So then this is not really n8n related. If you can curl other things fine but only not omrto.com then maybe they have blocked you or some other firewall in between blocks it. Cloudron does at least not block such connections as such.

              O Offline
              O Offline
              overholt
              wrote on last edited by
              #5

              @nebulon You are right. Our website hosting provider had to whitelist the n8n server's IP. Thanks for your help!

              1 Reply Last reply
              0
              • O overholt has marked this topic as solved on
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search