I need help from an n8n pro

Describe the problem/error/question

I cant get the http request to work with the webex cdr feed api, I wanna track calls and thats why I really need the api request to work but it just doesnt and after a long back and forth with their support they say the problem is on n8ns side. Would someone wanna look into this and how I can get the raw api request from my node.

What is the error message (if any)? Error: Invalid URL

Please share your workflow

(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": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        400,
        -240
      ],
      "id": "f86bf49d-d89f-4ac8-a27b-0307d8d3d3b9",
      "name": "When clicking ‘Execute workflow’"
    },
    {
      "parameters": {
        "url": "https://analytics-calling-eu.webexapis.com/v1/cdr_feed",
        "authentication": "genericCredentialType",
        "genericAuthType": "oAuth2Api",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "startTime",
              "value": "={{ $now.minus(11, 'hours').toUTC().format('yyyy-MM-dd') }}T{{ $now.minus(11, 'hours').toUTC().format('HH:mm:ss') }}Z"
            },
            {
              "name": "endTime",
              "value": "={{ $now.minus(10, 'minutes').toUTC().format('yyyy-MM-dd') }}T{{ $now.minus(10, 'minutes').toUTC().format('HH:mm:ss') }}Z"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        608,
        -240
      ],
      "id": "c49f1d5b-070c-423d-ab87-b9f1e24494e0",
      "name": "HTTP Request1",
      "credentials": {
        "oAuth2Api": {
          "id": "f3LEyTEEAhangQBA",
          "name": "Webex"
        }
      }
    }
  ],
  "connections": {
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "HTTP Request1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request1": {
      "main": [
        []
      ]
    }
  },
  "pinData": {},
  "meta": {
    "instanceId": "dd7bb0813a549e8f3dffb2819d13ed118f1a24a5727d35fd83412f162e532ce5"
  }
}

Share the output returned by the last node

{

“errorMessage”: “Invalid URL”,
“errorDetails”: {
“rawErrorMessage”: [
“Invalid URL”
],
“httpCode”: “ERR_INVALID_URL”
},
“n8nDetails”: {
“nodeName”: “HTTP Request1”,
“nodeType”: “n8n-nodes-base.httpRequest”,
“nodeVersion”: 4.3,
“itemIndex”: 0,
“time”: “28.1.2026, 15:26:57”,
“n8nVersion”: “2.4.5 (Self Hosted)”,
“binaryDataMode”: “filesystem”,
“stackTrace”: [
“NodeApiError: Invalid URL”,
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_8da18263ca0574b0db58d4fefd8173ce/node_modules/n8n-nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts:859:16)“,
" at WorkflowExecute.executeNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1045:8)”,
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1226:11)“,
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1662:27”,
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2297:11"
]
}
}

Information on your n8n setup

  • n8n version: newest
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: windows

(post deleted by author)

Hi @Liam_Lich

Welcome back to the n8n community!

Here’s what to verify step by step:

First, make sure the URL field is exactly https://analytics-calling-eu.webexapis.com/v1/cdr_feed with no spaces, no trailing expression, and no line breaks.

Second, check your query parameter Value fields. They should be in expression mode shown in purple, contain a single {{ ... }} expression that returns a string, and when you preview in the expression editor it should show something like 2026-01-28T10:15:00Z.

Third, run some tests. Start by running with no query params, which should not give Invalid URL. Then add static query params, which should still work. Finally, add the dynamic expressions back.

If after these steps you still get an/the error, we need more details to diagnose it. Share a screenshot of your HTTP Request node including the URL and query params with expression

Thanks for the help, heres a screenshot, should be exactly how you described.

If I execute it without anay query parameters it gives the same error, this is the error details: {
“errorMessage”: “Invalid URL”,
“errorDetails”: {
“rawErrorMessage”: [
“Invalid URL”
],
“httpCode”: “ERR_INVALID_URL”
},
“n8nDetails”: {
“nodeName”: “HTTP Request”,
“nodeType”: “n8n-nodes-base.httpRequest”,
“nodeVersion”: 4.3,
“itemIndex”: 0,
“time”: “4.2.2026, 07:18:16”,
“n8nVersion”: “2.4.5 (Self Hosted)”,
“binaryDataMode”: “filesystem”,
“stackTrace”: [
“NodeApiError: Invalid URL”,
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_8da18263ca0574b0db58d4fefd8173ce/node_modules/n8n-nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts:859:16)“,
" at WorkflowExecute.executeNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1045:8)”,
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1226:11)“,
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1662:27”,
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2297:11"
]
}
}

@Liam_Lich

Try using OAuth outside of the HTTP Request node, or use the Webex node if it’s available in your setup.

As a small improvement to the query parameters, you can simplify them like this:

={{ $now.minus(11, 'hours').toISO() }}

The recommended solution is to separate OAuth from the HTTP Request and manually pass the Bearer token in the request headers instead of letting the HTTP Request node handle OAuth directly.

How can I manually pass the Bearer token in the request headers? I dont really know how I can use OAuth outside of the http request

in the HTTP Request node.I set authentication to None and then add the Authorization header manually, using Bearer followed by the token.

1 Like

Actually I have no clue how to do that, thats why Im using n8n. I cant even code 1 line

n8n is very straightforward, like no code; can you share the workflow on the canvas, not in code? @Liam_Lich