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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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)
backend:open_webui:apps:retrieval:loaders:main.txt
I want ti know 「how to upload any xlsx」and「resolve error above」
Thanks.
Environment