[GH-ISSUE #7825] specific xlsx file upload error #30430

Closed
opened 2026-04-25 04:38:29 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @panchoooon on GitHub (Dec 13, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7825

Bug Report

Error is occured when I upload specific xlsx files by knowledge(@UI) to openwebui. ※docker container
Then, I tried to fix with backend/open_webui/apps/retrieval/loaders/main.py.
But, I got Error bellow. (my method is firstly convert md and return Textloader)

2024-12-13 18:34:00 INFO:     192.168.65.1:29399 - "POST /api/v1/knowledge/9e3189fe-0e73-4e9c-af58-5e62cb523713/file/remove HTTP/1.1" 200 OK
2024-12-13 18:34:05 WARNI [python_multipart.multipart] Skipping data after last boundary
2024-12-13 18:34:05 INFO  [open_webui.apps.webui.routers.files] file.content_type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
2024-12-13 18:34:05 ERROR [open_webui.apps.retrieval.main] HTTP Error 403: Forbidden
2024-12-13 18:34:05 Traceback (most recent call last):
2024-12-13 18:34:05   File "/app/backend/open_webui/apps/retrieval/main.py", line 960, in process_file
2024-12-13 18:34:05     TIKA_SERVER_URL=app.state.config.TIKA_SERVER_URL,
2024-12-13 18:34:05        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-13 18:34:05   File "/app/backend/open_webui/apps/retrieval/loaders/main.py", line 125, in load
2024-12-13 18:34:05     loader = self._get_loader(filename, file_content_type, file_path)
2024-12-13 18:34:05            ^^^^^^^^^^^^^
2024-12-13 18:34:05   File "/usr/local/lib/python3.11/site-packages/langchain_core/document_loaders/base.py", line 31, in load
2024-12-13 18:34:05     return list(self.lazy_load())
2024-12-13 18:34:05            ^^^^^^^^^^^^^^^^^^^^^^
2024-12-13 18:34:05   File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/unstructured.py", line 107, in lazy_load
2024-12-13 18:34:05     elements = self._get_elements()
2024-12-13 18:34:05                ^^^^^^^^^^^^^^^^^^^^
2024-12-13 18:34:05   File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/excel.py", line 51, in _get_elements
2024-12-13 18:34:05     return partition_xlsx(filename=self.file_path, **self.unstructured_kwargs)  # type: ignore[arg-type]
2024-12-13 18:34:05            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-13 18:34:05   File "/usr/local/lib/python3.11/site-packages/unstructured/documents/elements.py", line 605, in wr

backend:open_webui:apps:retrieval:loaders:main.txt

I want ti know 「how to upload any xlsx」and「resolve error above」
Thanks.

Environment

  • Open WebUI Version: newest ver@ 2024/12/1
Originally created by @panchoooon on GitHub (Dec 13, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/7825 # Bug Report Error is occured when I upload specific xlsx files by knowledge(@UI) to openwebui. ※docker container Then, I tried to fix with backend/open_webui/apps/retrieval/loaders/main.py. But, I got Error bellow. (my method is firstly convert md and return Textloader) ```Logs 2024-12-13 18:34:00 INFO: 192.168.65.1:29399 - "POST /api/v1/knowledge/9e3189fe-0e73-4e9c-af58-5e62cb523713/file/remove HTTP/1.1" 200 OK 2024-12-13 18:34:05 WARNI [python_multipart.multipart] Skipping data after last boundary 2024-12-13 18:34:05 INFO [open_webui.apps.webui.routers.files] file.content_type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet 2024-12-13 18:34:05 ERROR [open_webui.apps.retrieval.main] HTTP Error 403: Forbidden 2024-12-13 18:34:05 Traceback (most recent call last): 2024-12-13 18:34:05 File "/app/backend/open_webui/apps/retrieval/main.py", line 960, in process_file 2024-12-13 18:34:05 TIKA_SERVER_URL=app.state.config.TIKA_SERVER_URL, 2024-12-13 18:34:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-12-13 18:34:05 File "/app/backend/open_webui/apps/retrieval/loaders/main.py", line 125, in load 2024-12-13 18:34:05 loader = self._get_loader(filename, file_content_type, file_path) 2024-12-13 18:34:05 ^^^^^^^^^^^^^ 2024-12-13 18:34:05 File "/usr/local/lib/python3.11/site-packages/langchain_core/document_loaders/base.py", line 31, in load 2024-12-13 18:34:05 return list(self.lazy_load()) 2024-12-13 18:34:05 ^^^^^^^^^^^^^^^^^^^^^^ 2024-12-13 18:34:05 File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/unstructured.py", line 107, in lazy_load 2024-12-13 18:34:05 elements = self._get_elements() 2024-12-13 18:34:05 ^^^^^^^^^^^^^^^^^^^^ 2024-12-13 18:34:05 File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/excel.py", line 51, in _get_elements 2024-12-13 18:34:05 return partition_xlsx(filename=self.file_path, **self.unstructured_kwargs) # type: ignore[arg-type] 2024-12-13 18:34:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-12-13 18:34:05 File "/usr/local/lib/python3.11/site-packages/unstructured/documents/elements.py", line 605, in wr ``` [backend:open_webui:apps:retrieval:loaders:main.txt](https://github.com/user-attachments/files/18124264/backend.open_webui.apps.retrieval.loaders.main.txt) I want ti know 「how to upload any xlsx」and「resolve error above」 Thanks. ## Environment - **Open WebUI Version:** newest ver@ 2024/12/1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#30430