Gemini Analyze Video Node Fails to upload file

Describe the problem/error/question

The new gemini node for video analysis seems to fail pretty much at random with the same url.
The exact error is " The file failed to be processed.

Error uploading file"

And the stack trace is: "

NodeOperationError: The file failed to be processed. at ExecuteContext.uploadFile (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@n8n+n8n-nodes-langchain@file+packages+@n8n+nodes-langchain_c7791fa0cf1054f8be91f739b153c14e/node_modules/@n8n/n8n-nodes-langchain/nodes/vendors/GoogleGemini/helpers/utils.ts:74:9) at processTicksAndRejections (node:internal/process/task_queues:105:5) at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/@n8n+n8n-nodes-langchain@file+packages+@n8n+nodes-langchain_c7791fa0cf1054f8be91f739b153c14e/node_modules/@n8n/n8n-nodes-langchain/nodes/vendors/GoogleGemini/helpers/baseAnalyze.ts:38:13 at async Promise.all (index 0) at ExecuteContext.baseAnalyze (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@n8n+n8n-nodes-langchain@file+packages+@n8n+nodes-langchain_c7791fa0cf1054f8be91f739b153c14e/node_modules/@n8n/n8n-nodes-langchain/nodes/vendors/GoogleGemini/helpers/baseAnalyze.ts:42:21) at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@n8n+n8n-nodes-langchain@file+packages+@n8n+nodes-langchain_c7791fa0cf1054f8be91f739b153c14e/node_modules/@n8n/n8n-nodes-langchain/nodes/vendors/GoogleGemini/actions/video/analyze.operation.ts:101:9) at ExecuteContext.router (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@n8n+n8n-nodes-langchain@file+packages+@n8n+nodes-langchain_c7791fa0cf1054f8be91f739b153c14e/node_modules/@n8n/n8n-nodes-langchain/nodes/vendors/GoogleGemini/actions/router.ts:52:25) at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@n8n+n8n-nodes-langchain@file+packages+@n8n+nodes-langchain_c7791fa0cf1054f8be91f739b153c14e/node_modules/@n8n/n8n-nodes-langchain/nodes/vendors/GoogleGemini/GoogleGemini.node.ts:15:10) at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_46e522f8a77ed5eccc0991bfcca21502/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1211:9) at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_46e522f8a77ed5eccc0991bfcca21502/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1581:27
```"
## What is the error message (if any)?

## Please share your workflow

{
“nodes”: [
{
“parameters”: {
“assignments”: {
“assignments”: [
{
“id”: “f9ec64ba-f78d-4221-af3b-586bf487e7b4”,
“name”: “result”,
“value”: “={{ $json.content.parts[0].text.replaceAll("json\",\"\").replaceAll(\"","") }}”,
“type”: “object”
}
]
},
“options”: {}
},
“type”: “n8n-nodes-base.set”,
“typeVersion”: 3.4,
“position”: [
592,
-144
],
“id”: “aa753846-54f6-4ef3-b896-08630d0553e7”,
“name”: “Edit Fields”
},
{
“parameters”: {
“inputSource”: “jsonExample”,
“jsonExample”: "{\n"mediaLink":"https://storage.googleapis.com/prepcart-prod-videos/videos/oEr5NAeuUSge9DokTC8bDBgaaBs8KWQtRFncE4\“,\n\“videoDescription\”:\“description\”\n\n}”
},
“id”: “8051fbc3-a3e8-4e01-ad6b-98f3657d638e”,
“typeVersion”: 1.1,
“name”: “Start”,
“type”: “n8n-nodes-base.executeWorkflowTrigger”,
“position”: [
-64,
-144
]
},
{
“parameters”: {
“resource”: “video”,
“operation”: “analyze”,
“modelId”: {
“__rl”: true,
“value”: “models/gemini-2.5-flash-lite-preview-06-17”,
“mode”: “list”,
“cachedResultName”: “models/gemini-2.5-flash-lite-preview-06-17”
},
“text”: “=You are an expert recipe assistant. Your task is to analyze the provided cooking video and extract the recipe into a structured JSON format.\n\nThe JSON output must strictly conform to the following schema:\n\njson\nCopy\nEdit\n{\n "displayTitle": "string",\n "displayDescription": "string",\n "cookTimeMinutes": number,\n "ingredients": [\n {\n "name": "string",\n "quantity": number | null,\n "unit": "string"\n }\n ],\n "instructions": [\n {\n "instruction": "string",\n "startTimestamp": number,\n "endTimestamp": number,\n "timer": {\n "durationMinutes": number | null\n }\n }\n ]\n}\nExtraction Guidelines:\ndisplayTitle: Generate a concise, descriptive title for the dish.\n\ndisplayDescription: Summarize the dish and its preparation style in 1–2 sentences.\n\ncookTimeMinutes: Estimate total time (prep + cooking).\n\ningredients:\n\nFor each ingredient, extract:\n\nname (e.g., "olive oil")\n\nquantity (always a number; use null for "to taste", "as needed", etc.)\n\nunit (e.g., "tablespoons", "grams")\n\nNever store quantity as a string.\n\ninstructions:\n\nDivide the recipe into distinct, meaningful steps — avoid over-segmentation.\n\nEach step must include:\n\ninstruction: Clear and concise description of the action.\n\nIf temperature is mentioned, always provide both Celsius and Fahrenheit (e.g., "Bake at 180°C / 356°F").\n\nstartTimestamp and endTimestamp:\n\nAlways in seconds.\n\nEach step must last at least 5 seconds, but no more than 45 seconds, unless continuous action requires it.\n\nSteps must not exceed the video duration: {{ $json.videoDuration }} seconds.\n\nOverlaps are allowed if steps run in parallel.\n\ntimer.durationMinutes: Extract from phrases like "simmer for 20 minutes", or infer reasonably; use null if not applicable.\n\nUse the following video metadata as reference:\n\nVideo Description: {{ $json.videoDescription }}\n\nVideo Duration (in seconds): {{ $json.videoDuration }}\n\nWhen finished, return only the JSON object — no preamble, no markdown, no explanations.”,
“videoUrls”: “={{ $json.mediaLink }}”,
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.googleGemini”,
“typeVersion”: 1,
“position”: [
368,
-144
],
“id”: “d3fb0a01-2972-409b-bebd-a7192ca68a9d”,
“name”: “Analyze video”,
“retryOnFail”: true,
“maxTries”: 2,
“credentials”: {
“googlePalmApi”: {
“id”: “vldHUpUJIis0AOV8”,
“name”: “Google Gemini(PaLM) Api account”
}
}
}
],
“connections”: {
“Start”: {
“main”: [
[
{
“node”: “Analyze video”,
“type”: “main”,
“index”: 0
}
]
]
},
“Analyze video”: {
“main”: [
[
{
“node”: “Edit Fields”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {
“Start”: [
{
“mediaLink”: “https://storage.googleapis.com/prepcart-prod-videos/videos/oEr5NAeuUSge9DokTC8bDBgaaBs8KWQtRFncE4”,
“videoDescription”: “description”
}
]
},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “9485ad86d3632f9534fc64de03af27c1c1d4cddf183f9e69d53362f648f161a6”
}
}


## Share the output returned by the last node
Error
## Information on your n8n setup
- **n8n version: latest**
- **Database (default: SQLite): sqlite**
- **n8n EXECUTIONS_PROCESS setting (default: own, main): default**
- **Running n8n via (Docker, npm, n8n cloud, desktop app): docker + mounted volume**
- **Operating system: debian vm**

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.