Skip to content

[Bug]: Password-protected PDF ingestion fails with Docling 404 instead of meaningful error #1196

@sreedevi-m-2026

Description

@sreedevi-m-2026

OpenRAG Version

0.3.2

Deployment Method

uv add (installed in project)

Operating System

macOs

Python Version

3.13

Affected Area

Ingestion (document processing, upload, Docling)

Bug Description

When uploading a password-protected PDF through the OpenRAG ingestion flow, the system fails with a Docling 404 error instead of returning a clear, user-friendly message indicating that the document is encrypted or unsupported.

Steps to Reproduce

  1. Open OpenRAG UI
  2. Go to Add Knowledge → Upload Document
  3. Upload a password-protected PDF
  4. Run the ingestion flow
  5. Check task logs

Expected Behavior

System should detect encrypted PDF and:

show clear error like:

"Password-protected PDFs are not supported"

OR prompt for password (if supported)

No misleading 404 or backend error

Flow should fail gracefully without confusing logs

Actual Behavior

ask fails with error:

Error running graph:
Component Docling Serve:
Client error '404 Not Found'
http://host.docker.internal:5001/v1/result/...

No clear indication that the file is password-protected

Failure appears as Docling service issue, not file issue

Relevant Logs

Screenshots

Image

sample_financial_password_protected.pdf

Additional Context

No response

Checklist

  • I have searched existing issues to ensure this bug hasn't been reported before.
  • I have provided all the requested information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🔴 Something isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions