mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 18:43:44 -05:00
[GH-ISSUE #22458] issue: PDF parsing with /filter error #123028
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MarceloMassarente on GitHub (Mar 8, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22458
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.8.9
Ollama Version (if applicable)
No response
Operating System
ubuntu
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
when ingesting pdf with native engine, it should extract the markdown
Actual Behavior
erros, with /filter showing in the chat on a yellow box on the top
Steps to Reproduce
just try to ingest pdf
Logs & Screenshots
2026-03-08 18:27:48.052 | ERROR | open_webui.routers.retrieval:process_file:1880 - '/Filter'
Traceback (most recent call last):
File "/usr/local/lib/python3.11/threading.py", line 1002, in _bootstrap
File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 986, in run
File "/usr/local/lib/python3.11/site-packages/open_webui/routers/files.py", line 164, in process_uploaded_file
File "/usr/local/lib/python3.11/site-packages/open_webui/routers/files.py", line 128, in _process_handler
File "/usr/local/lib/python3.11/site-packages/open_webui/retrieval/loaders/main.py", line 194, in load
File "/usr/local/lib/python3.11/site-packages/langchain_core/document_loaders/base.py", line 43, in load
File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/pdf.py", line 305, in lazy_load
File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/parsers/pdf.py", line 397, in lazy_parse
File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/parsers/pdf.py", line 444, in extract_images_from_page
File "/usr/local/lib/python3.11/site-packages/pypdf/generic/_data_structures.py", line 472, in getitem
KeyError: '/Filter'
2026-03-08 18:27:48.057 | ERROR | open_webui.routers.files:_process_handler:150 - Error processing file: 6d6f03ac-8e0a-4d0c-960e-03b92fc9f094
Additional Information
No response
@tjbck commented on GitHub (Mar 8, 2026):
This is an upstream bug in langchain-community's PyPDFParser.extract_images_from_page — it accesses xObject[obj]["/Filter"] without checking for key existence; please report it to langchain-community or pypdf, and as a workaround you can disable "Extract Images from PDF" in Admin → Settings → Documents.
@MarceloMassarente commented on GitHub (Mar 9, 2026):
Thanks.
But do you know why this didn't happen before? did something change in OWUI
regarding how PyPDF is used?
regards
On Sun, Mar 8, 2026 at 7:20 PM Tim Baek @.***> wrote: