Failed to download video file

Describe the problem/error/question

I try to get a frame and i have an error message that I don’t understant

What is the error message (if any)?

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": {
        "url": "={{ $json.response_url }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        480,
        0
      ],
      "id": "eab17ab2-0064-4187-afec-14b0820af0c9",
      "name": "get frame",
      "credentials": {
        "httpHeaderAuth": {
          "id": "qDaoJkDsMdas24Rb",
          "name": "FAL AI"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://queue.fal.run/fal-ai/ffmpeg-api/extract-frame",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"video_url\": \"{{ $json.video_urls }}\",\n  \"frame_type\": \"last\"\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        160,
        0
      ],
      "id": "3258d01f-2cda-49e0-acc5-2a91bfc52c9e",
      "name": "extract frame",
      "credentials": {
        "httpHeaderAuth": {
          "id": "qDaoJkDsMdas24Rb",
          "name": "FAL AI"
        }
      }
    },
    {
      "parameters": {
        "amount": 60
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        320,
        0
      ],
      "id": "b45ca5c4-3965-4591-ba39-f576b1f7e1d6",
      "name": "Wait2",
      "webhookId": "c85c9304-86da-40c6-87c8-fd24d4aa57fa"
    },
    {
      "parameters": {
        "workflowInputs": {
          "values": [
            {
              "name": "video_urls",
              "type": "any"
            }
          ]
        }
      },
      "id": "6190d379-e60b-474e-9214-db37014d72bf",
      "typeVersion": 1.1,
      "name": "Start",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "2f0b1204-bc75-4d5f-9151-93cff3095209",
              "name": "last_frame_url",
              "value": "={{ $json.images[0].url }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        640,
        0
      ],
      "id": "b304bf5f-e93d-4f18-a901-2b5e86e02200",
      "name": "Last frame"
    }
  ],
  "connections": {
    "get frame": {
      "main": [
        [
          {
            "node": "Last frame",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "extract frame": {
      "main": [
        [
          {
            "node": "Wait2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait2": {
      "main": [
        [
          {
            "node": "get frame",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start": {
      "main": [
        [
          {
            "node": "extract frame",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "meta": {
    "instanceId": "bc59114887a406be5fc76aa002f900faf8bf5273e86ae9879c340315e31ccc61"
  }
}

Share the output returned by the last node

Error code
400
Full message
400 - “{"detail":"Failed to download video file: "}”
Request
{ “headers”: { “Authorization”: “hidden”, “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://queue.fal.run/fal-ai/ffmpeg-api/requests/15f06a49-c822-4376-b53f-1a481d919963”, “gzip”: true, “rejectUnauthorized”: true, “followRedirect”: true, “resolveWithFullResponse”: true, “followAllRedirects”: true, “timeout”: 300000, “encoding”: null, “json”: false, “useStream”: true }
Other info
Item Index
2
Node type
n8n-nodes-base.httpRequest
Node version
4.2 (Latest version: 4.3)
n8n version
1.123.5-exp.0 (Cloud)
Time
10/12/2025 22:49:57
Stack trace
NodeApiError: Bad request - please check your parameters 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 processTicksAndRejections (node:internal/process/task_queues:105:5) 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:2274:11

Information on your n8n setup

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

hi,
my guess is that the url of the queue_position 2 is not a valid one.
you can compare it to the one provided in the error message.

1 Like

Hey @Pierre_Gerard !

As @Nestor already said(invalid), the video URL you ae trying to pass, it means maybe is not public.

And your image shows us the item0 and item1 ( index count starts from 0 )…

BTW if you want that your workflow doesn’t get interrupted by a failed url, just enable “Continue on Errror’“.

Cheers!

Hi,
did you find the solution to your issue?