Gemini analyze document

GEMINI ERROR analyze document Bad request - please check your parameters

Describe the problem/error/question

Bad request - please check your parameters

What is the error message (if any)?

{
  "errorMessage": "Bad request - please check your parameters",
  "errorDescription": "Request contains an invalid argument.",
  "errorDetails": {
    "rawErrorMessage": [
      "Request failed with status code 400"
    ],
    "errorData": {
      "error": {
        "code": 400,
        "message": "Request contains an invalid argument.",
        "status": "INVALID_ARGUMENT"
      }
    }
  },
  "n8nDetails": {
    "nodeName": "Analyze document",
    "nodeType": "@n8n/n8n-nodes-langchain.googleGemini",
    "nodeVersion": 1,
    "resource": "document",
    "operation": "analyze",
    "itemIndex": 0,
    "time": "8/25/2025, 4:20:42 PM",
    "n8nVersion": "1.107.4 (Self Hosted)",
    "binaryDataMode": "filesystem",
    "stackTrace": [
      "NodeOperationError: Bad request - please check your parameters",
      "    at ExecuteContext.router (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@n8n+n8n-nodes-langchain@file+packages+@n8n+nodes-langchain_944c224e2f203516e58b6afc03783333/node_modules/@n8n/n8n-nodes-langchain/nodes/vendors/GoogleGemini/actions/router.ts:60:10)",
      "    at processTicksAndRejections (node:internal/process/task_queues:105:5)",
      "    at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@n8n+n8n-nodes-langchain@file+packages+@n8n+nodes-langchain_944c224e2f203516e58b6afc03783333/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]_0c275070fd0434c00ffd62213b2bcae4/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1212:9)",
      "    at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_0c275070fd0434c00ffd62213b2bcae4/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1582:27",
      "    at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_0c275070fd0434c00ffd62213b2bcae4/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2158:11"
    ]
  }
}

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.)

Share the output returned by the last node

Information on your n8n setup

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

hi there @Futurebillionaire , i just tried it and it actually works for me

maybe what i can suggest you to do is, maybe there’s something on the text input that makes it invalid, you can test around with that, and maybe all you need is an update on the n8n instance

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