Skip to content

broken pdf doesn't fail job #353

Description

@tharvik
  • generate an invalid PDF: head -c1024 < /dev/urandom > random.pdf
  • upload it and get the job ID
  • get the job status curl /v1/jobs/84b90f0b14b2499cb7955ee99912b9e0 | jq
{
  "jobId": "84b90f0b14b2499cb7955ee99912b9e0",
  "fileId": "59676658-1652-47f3-934f-d74fdec1dcb9",
  "filename": "random.pdf",
  "status": "done",
  "device": "cuda:0",
  "result": {
    "chunks": 0
  },
  "error": null
}

mmore logs

[Retrieve 🔍 2026-08-11 13:33:39] [JobQueue] job 84b90f0b14b2499cb7955ee99912b9e0 queued (file_id=59676658-1652-47f3-934f-d74fdec1dcb9, filename=random.pdf)
[Retrieve 🔍 2026-08-11 13:33:39] [JobQueue] job 84b90f0b14b2499cb7955ee99912b9e0 processing (gpu=cuda:0), free slots: 0/1
INFO:     10.244.0.1:45494 - "POST /v1/files/bulk HTTP/1.1" 202 Accepted
INFO:     10.244.0.1:45494 - "GET /v1/jobs/84b90f0b14b2499cb7955ee99912b9e0/events HTTP/1.1" 200 OK
ERROR:root:Failed to process /tmp/index_job_3aklba5t/input/random.pdf: Failed to load document (PDFium: Data format error).
  🦛 Chunker ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0/0 sample   0% 0:00:00
  Indexing ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0/0 doc   0% 0:00:00
[Retrieve 🔍 2026-08-11 13:33:55] [JobQueue] job 84b90f0b14b2499cb7955ee99912b9e0 done (gpu=cuda:0, result={'chunks': 0})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions