fix: [ISSUE] "Error fetching data and indexing: [Errno 2] No such file or directory: '/data/INFILE.pdf'" in API workflow execution
Open
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 718
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 23
Description
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 830e56382b5725590ccc1ea3f21fa644f62e070e (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
and logs
"Run Workflow"
Prompt Studio works.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.