Pdf-parse v1.1 Fehler im Node Standard-Datenlader

Ich bekomme die Meldung: NodeOperationError: Failed to load pdf-parse. This loader currently supports pdf-parse v1 only. Please install v1, e.g. npm install pdf-parse@^1 (v2 is not yet supported) in der Node Data Loader. Es ist offenbar ein symlink von V. 1.1.1 auf die neueste Version von pdf-parse@2.x.x installiert worden. Habe den Symlink wieder auf 1.1.1 gesetzt, danach war die Fehlermeldung weg. Nach einem Update auf die allerneuste Version wieder Fehler da. Der Symlink also überschrieben. Ist ein Update des Data Loaders vorgesehen? Danke für Ideen, viele Grüße, Thomas

Describe the problem/error/question

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

Share the output returned by the last node

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:

hallo @musicanera

Was ist “pdf-parse”? Ich sehe einen solchen Node in n8n nicht. Kannst du einen Screenshot teilen?


Dieser Abschnitt bedeutet, dass du die Informationen ausfüllen musst, nicht einfach die Vorlage kopieren…

Hallo, es handelt sich um den Default Data Loader-Node, n8n Version 2.21.5, läuft auf einer Synology in docker, Supabase-Datenbank, wird auf einem Apple-System verwaltet.

@musicanera Falls du eine API zum Parsen von PDFs verwenden möchtest, kannst du den PDF API Hub Approved Node nutzen.

Es gibt auch einen kostenlosen Plan.

hi @musicanera, good morning!
I would avoid relying on manual symlinks in production. As a more stable workaround, use a custom Docker image installing/pinning pdf-parse@^1, or extract the text from the PDF before the Data Loader using another step/node and send text/JSON to the embeddings flow.

Es gibt dazu ein offenes Issue:
Error while working with pdf · Issue #30841 · n8n-io/n8n

Danke!!

Ich habe das gleiche Problem auch bei n8n Version 2.21.7.

Der Document Loader schlägt fehl mit:

Failed to load pdf-parse. This loader currently supports pdf-parse v1 only.

Ich habe es mit einer normalen Text-PDF (~2,4 MB) getestet und bestätigt, dass der Google Drive-Download-Node gültige Binärdaten zurückgibt.