Version mismatch in n8n workflow

I use the n8n cloud and I have a workflow with extract from file node.
And I have got this error in my workflow:
Item Index

0

Node type

n8n-nodes-base.extractFromFile

Node version

1.1 (Latest)

n8n version

2.26.4 (Cloud)

Stack trace

NodeOperationError: The API version "5.3.31" does not match the Worker version "5.4.296". at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@aws-sdk+credential-providers@3.808.0_asn1.js@5_8da18263ca0574b0db58d4fefd8173ce/node_modules/n8n-nodes-base/nodes/Files/ExtractFromFile/actions/pdf.operation.ts:134:10) at processTicksAndRejections (node:internal/process/task_queues:104:5) at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@aws-sdk+credential-providers@3.808.0_asn1.js@5_8da18263ca0574b0db58d4fefd8173ce/node_modules/n8n-nodes-base/nodes/Files/ExtractFromFile/ExtractFromFile.node.ts:134:17) at WorkflowExecute.executeNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+exporter-trace-otlp_cf5896492347c4895f0373f4acc773d7/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1053:8) at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+exporter-trace-otlp_cf5896492347c4895f0373f4acc773d7/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1327:11) at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+exporter-trace-otlp_cf5896492347c4895f0373f4acc773d7/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1778:27 at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@opentelemetry+api@1.9.0_@opentelemetry+exporter-trace-otlp_cf5896492347c4895f0373f4acc773d7/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2474:11

@Quent known n8n bug, not your workflow. The Extract from File PDF operation bundles pdf.js, and on recent Cloud builds (2.25-2.26.x) its pdf.js API and worker are on mismatched versions (your 5.3.31 vs 5.4.296), so any PDF parse throws this. Others hit the identical error on Cloud; the fix is upgrading pdfjs-dist in n8n core, still pending.

Nothing to fix in your node. Until n8n ships it:

  1. Extract the PDF text outside that node, an HTTP Request to a PDF-to-text API, or a verified community PDF node.
  2. If you can change your n8n version on Cloud, an earlier build may dodge the conflict, worth a test.

Don’t burn time on your config, it’s the node’s bundled pdf.js.