Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] PDF FILE UPLOAD Error: vectorsService.upsertVector - UnknownErrorException: PDFDocument: stream must have data

Open TheVoidRoger opened this issue 1 year ago • 2 comments

Describe the bug PDF File node upserting to Pinecone is giving an error even though the pdf file has been uploaded. File size is less than 5mb.

To Reproduce Steps to reproduce the behavior:

  1. Connected the following nodes.. Recursive Character Text Splitter with 1000 chunk and 100 chunk overlap --> PDF File with less than 5mb pdf --> Pinecone with valid API, index and namespace. --> Conversational Retrieval QA Chain > ChatOpenAI.
  2. Clicked the green 'Upsert Vector Database' button
  3. show error: "Error: vectorsService.upsertVector - UnknownErrorException: PDFDocument: stream must have data"

Expected behavior Expected to show successful upsert. Tried to replace the "pdf file" with a "plain text" node, it successfully upserted the data.

Setup Via DigitalOcean, docker.

TheVoidRoger avatar May 03 '24 17:05 TheVoidRoger

not sure if this helps, but try using legacy build: image

HenryHengZJ avatar May 04 '24 16:05 HenryHengZJ

Thank you @HenryHengZJ . Tried it. But no luck. Noticed with the PDF node, it won't even save as soon I've chosen a pdf. (tried couple of pdf, varying file sizes & compressions). I'm forced to refresh the page and it will remove the pdf that I've previously selected.

TheVoidRoger avatar May 09 '24 11:05 TheVoidRoger

Update: I've re-deployed it to render and it works. I think something is blocking the pdf upload in digitalocean's backend. It's not just the PDF uploader node as this issue also occurs with "Unstructured File loader" node inside DO environment.

Has anyone experience the same issue with DO? Found any solution?

TheVoidRoger avatar Jun 14 '24 09:06 TheVoidRoger

Hello. How did you solve it? I have the same problem. Docker v26.1.4 I've already tried with version 1.8.3 and also with 1.72. VPS Contabo @TheVoidRoger

JNNelson avatar Jul 02 '24 14:07 JNNelson

Try the latest version, itt should be working now. Feel free to re-open if issue persists

HenryHengZJ avatar Aug 31 '24 11:08 HenryHengZJ