Skip to content

fix: [ISSUE] "Error fetching data and indexing: [Errno 2] No such file or directory: '/data/INFILE.pdf'" in API workflow execution #595

Open
@kun432

Description

@kun432

Describe the bug

Following "Getting Started" instructions, but got an error in API workflow. Always the same errors happen.

Error fetching data and indexing: [Errno 2] No such file or directory: '/data/INFILE.pdf'

To reproduce

Following "Getting Started" instructions, except:

  • using Japanese invoice PDF
  • change prompts a little to match with invoice documents.

Errors happens:

  • create API workflow and reqeust API with Postman (checked logs via workflow)
  • and also "Run Workflow" with some PDFs in workflow screen.

got the same error always.

Expected behavior

  • API workflow returns correct parsed data.
  • "Run Workflow" works correctly and return parsed data.

Environment details

  • Version: commit 830e563 (tag: v0.81.0)
  • OS: macOS 13.6
  • Docker: Docker Desktop for Mac 4.31.0
  • LLM: OpenAI gpt-4o-mini
  • Embeddings: OpenAI
  • VectorDB: Qdrant Cloud
  • Text Extractor: Llama Parse

Additional context

I have 3 sample PDF.
Parsing all of them works perfectly in Prompt Studio.
OTOH, in both API and Workflow, Parsing all of above always failed.

Screenshots

API reqeust from Postman
SS_ 2024-08-19 22 50 41

and logs

59b5ece3a177-20240819

"Run Workflow"

9babcf679378-20240819

Prompt Studio works.
SS_ 2024-08-19 22 12 27

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions