[GH-ISSUE #6597] When uploading a JPEG image, I'm getting TimeoutError: Timeout reached while detecting encoding #29945

Closed
opened 2026-04-25 04:18:30 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @natea on GitHub (Oct 30, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/6597

Bug Report


Installation Method

I used docker run to install it on an Ubuntu Linux host.

Environment

  • Open WebUI Version: v0.3.35

  • Operating System: Ubuntu 20.04

  • Browser (if applicable): [e.g., Chrome 100.0, Firefox 98.0]

Confirmation:

  • [x ] I have read and followed all the instructions provided in the README.md.
  • [x ] I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • [x ] I have included the Docker container logs.
  • [x ] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

When I upload a document, I won't get an error message.

Actual Behavior:

When I upload a document to a Knowledge Collection, it gives an error message and I get the error shown below.

Description

Bug Summary:

When I upload a JPEG image, it fails to upload and the Docker logs show the following traceback (see below)

Reproduction Details

Steps to Reproduce:

Upload a document, preferably larger than 1MB.

Logs and Screenshots

Browser Console Logs:
[Include relevant browser console logs, if applicable]

Docker Container Logs:

{"log":"ERROR [open_webui.apps.retrieval.main] Timeout reached while detecting encoding for /app/backend/data/uploads/0686eadf-e5d3-43c2-a5de-a0d1ddb157d6_Billing by providers in the event of a surprise bill.jpg\n","stream":"stderr","time":"2024-10-30T18:03:59.141368236Z"}
{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2024-10-30T18:03:59.141456151Z"}
{"log":"  File \"/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/text.py\", line 43, in lazy_load\n","stream":"stderr","time":"2024-10-30T18:03:59.14146416Z"}
{"log":"    text = f.read()\n","stream":"stderr","time":"2024-10-30T18:03:59.141469908Z"}
{"log":"           ^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.141474659Z"}
{"log":"  File \"\u003cfrozen codecs\u003e\", line 322, in decode\n","stream":"stderr","time":"2024-10-30T18:03:59.141479373Z"}
{"log":"UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte\n","stream":"stderr","time":"2024-10-30T18:03:59.14148475Z"}
{"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.141490537Z"}
{"log":"During handling of the above exception, another exception occurred:\n","stream":"stderr","time":"2024-10-30T18:03:59.141629199Z"}
{"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.141638744Z"}
{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2024-10-30T18:03:59.141658796Z"}
{"log":"  File \"/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/helpers.py\", line 43, in detect_file_encodings\n","stream":"stderr","time":"2024-10-30T18:03:59.141664005Z"}
{"log":"    encodings = future.result(timeout=timeout)\n","stream":"stderr","time":"2024-10-30T18:03:59.141669209Z"}
{"log":"                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.141673981Z"}
{"log":"  File \"/usr/local/lib/python3.11/concurrent/futures/_base.py\", line 458, in result\n","stream":"stderr","time":"2024-10-30T18:03:59.141678509Z"}
{"log":"    raise TimeoutError()\n","stream":"stderr","time":"2024-10-30T18:03:59.14168307Z"}
{"log":"TimeoutError\n","stream":"stderr","time":"2024-10-30T18:03:59.141687326Z"}
{"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.141704788Z"}
{"log":"During handling of the above exception, another exception occurred:\n","stream":"stderr","time":"2024-10-30T18:03:59.141708387Z"}
{"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.141711895Z"}
{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2024-10-30T18:03:59.141715406Z"}
{"log":"  File \"/app/backend/open_webui/apps/retrieval/main.py\", line 841, in process_file\n","stream":"stderr","time":"2024-10-30T18:03:59.141718768Z"}
{"log":"    docs = loader.load(\n","stream":"stderr","time":"2024-10-30T18:03:59.141910142Z"}
{"log":"           ^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.141925709Z"}
{"log":"  File \"/app/backend/open_webui/apps/retrieval/loaders/main.py\", line 125, in load\n","stream":"stderr","time":"2024-10-30T18:03:59.141929206Z"}
{"log":"    docs = loader.load()\n","stream":"stderr","time":"2024-10-30T18:03:59.141933131Z"}
{"log":"           ^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.141936979Z"}
{"log":"  File \"/usr/local/lib/python3.11/site-packages/langchain_core/document_loaders/base.py\", line 30, in load\n","stream":"stderr","time":"2024-10-30T18:03:59.141940645Z"}
{"log":"    return list(self.lazy_load())\n","stream":"stderr","time":"2024-10-30T18:03:59.141953823Z"}
{"log":"           ^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.141957723Z"}
{"log":"  File \"/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/text.py\", line 46, in lazy_load\n","stream":"stderr","time":"2024-10-30T18:03:59.141978052Z"}
{"log":"    detected_encodings = detect_file_encodings(self.file_path)\n","stream":"stderr","time":"2024-10-30T18:03:59.141982967Z"}
{"log":"                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.141986894Z"}
{"log":"  File \"/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/helpers.py\", line 45, in detect_file_encodings\n","stream":"stderr","time":"2024-10-30T18:03:59.141990921Z"}
{"log":"    raise TimeoutError(\n","stream":"stderr","time":"2024-10-30T18:03:59.141995139Z"}
{"log":"TimeoutError: Timeout reached while detecting encoding for /app/backend/data/uploads/0686eadf-e5d3-43c2-a5de-a0d1ddb157d6_Billing by providers in the event of a surprise bill.jpg\n","stream":"stderr","time":"2024-10-30T18:03:59.142001362Z"}
{"log":"ERROR [open_webui.apps.webui.routers.files] 400: Timeout reached while detecting encoding for /app/backend/data/uploads/0686eadf-e5d3-43c2-a5de-a0d1ddb157d6_Billing by providers in the event of a surprise bill.jpg\n","stream":"stderr","time":"2024-10-30T18:03:59.145175181Z"}
{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2024-10-30T18:03:59.145206551Z"}
{"log":"  File \"/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/text.py\", line 43, in lazy_load\n","stream":"stderr","time":"2024-10-30T18:03:59.145212068Z"}
{"log":"    text = f.read()\n","stream":"stderr","time":"2024-10-30T18:03:59.145224581Z"}
{"log":"           ^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.145227799Z"}
{"log":"  File \"\u003cfrozen codecs\u003e\", line 322, in decode\n","stream":"stderr","time":"2024-10-30T18:03:59.145230941Z"}
{"log":"UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte\n","stream":"stderr","time":"2024-10-30T18:03:59.145234702Z"}
{"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.145237983Z"}
{"log":"During handling of the above exception, another exception occurred:\n","stream":"stderr","time":"2024-10-30T18:03:59.145241138Z"}
{"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.145244452Z"}
{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2024-10-30T18:03:59.145247568Z"}
{"log":"  File \"/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/helpers.py\", line 43, in detect_file_encodings\n","stream":"stderr","time":"2024-10-30T18:03:59.145250871Z"}
{"log":"    encodings = future.result(timeout=timeout)\n","stream":"stderr","time":"2024-10-30T18:03:59.145266826Z"}
{"log":"                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.14527002Z"}
{"log":"  File \"/usr/local/lib/python3.11/concurrent/futures/_base.py\", line 458, in result\n","stream":"stderr","time":"2024-10-30T18:03:59.145273101Z"}
{"log":"    raise TimeoutError()\n","stream":"stderr","time":"2024-10-30T18:03:59.145276123Z"}
{"log":"TimeoutError\n","stream":"stderr","time":"2024-10-30T18:03:59.145278872Z"}
{"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.145281936Z"}
{"log":"During handling of the above exception, another exception occurred:\n","stream":"stderr","time":"2024-10-30T18:03:59.145285069Z"}
{"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.145288592Z"}
{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2024-10-30T18:03:59.145291418Z"}
{"log":"  File \"/app/backend/open_webui/apps/retrieval/main.py\", line 841, in process_file\n","stream":"stderr","time":"2024-10-30T18:03:59.145295004Z"}
{"log":"    docs = loader.load(\n","stream":"stderr","time":"2024-10-30T18:03:59.145298529Z"}
{"log":"           ^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.145301637Z"}
{"log":"  File \"/app/backend/open_webui/apps/retrieval/loaders/main.py\", line 125, in load\n","stream":"stderr","time":"2024-10-30T18:03:59.145304777Z"}
{"log":"    docs = loader.load()\n","stream":"stderr","time":"2024-10-30T18:03:59.145308282Z"}
{"log":"           ^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.145311506Z"}
{"log":"  File \"/usr/local/lib/python3.11/site-packages/langchain_core/document_loaders/base.py\", line 30, in load\n","stream":"stderr","time":"2024-10-30T18:03:59.145314944Z"}
{"log":"    return list(self.lazy_load())\n","stream":"stderr","time":"2024-10-30T18:03:59.14531873Z"}
{"log":"           ^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.145322268Z"}
{"log":"  File \"/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/text.py\", line 46, in lazy_load\n","stream":"stderr","time":"2024-10-30T18:03:59.145325556Z"}
{"log":"    detected_encodings = detect_file_encodings(self.file_path)\n","stream":"stderr","time":"2024-10-30T18:03:59.145329832Z"}
{"log":"                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.145332328Z"}
{"log":"  File \"/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/helpers.py\", line 45, in detect_file_encodings\n","stream":"stderr","time":"2024-10-30T18:03:59.145334881Z"}
{"log":"    raise TimeoutError(\n","stream":"stderr","time":"2024-10-30T18:03:59.145337463Z"}
{"log":"TimeoutError: Timeout reached while detecting encoding for /app/backend/data/uploads/0686eadf-e5d3-43c2-a5de-a0d1ddb157d6_Billing by providers in the event of a surprise bill.jpg\n","stream":"stderr","time":"2024-10-30T18:03:59.14534134Z"}
{"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.145343977Z"}
{"log":"During handling of the above exception, another exception occurred:\n","stream":"stderr","time":"2024-10-30T18:03:59.145346274Z"}
{"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.145348624Z"}
{"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2024-10-30T18:03:59.145350828Z"}
{"log":"  File \"/app/backend/open_webui/apps/webui/routers/files.py\", line 71, in upload_file\n","stream":"stderr","time":"2024-10-30T18:03:59.145353401Z"}
{"log":"    process_file(ProcessFileForm(file_id=id))\n","stream":"stderr","time":"2024-10-30T18:03:59.145356028Z"}
{"log":"  File \"/app/backend/open_webui/apps/retrieval/main.py\", line 903, in process_file\n","stream":"stderr","time":"2024-10-30T18:03:59.145408445Z"}
{"log":"    raise HTTPException(\n","stream":"stderr","time":"2024-10-30T18:03:59.145414468Z"}
{"log":"fastapi.exceptions.HTTPException: 400: Timeout reached while detecting encoding for /app/backend/data/uploads/0686eadf-e5d3-43c2-a5de-a0d1ddb157d6_Billing by providers in the event of a surprise bill.jpg\n","stream":"stderr","time":"2024-10-30T18:03:59.145417264Z"}
{"log":"ERROR [open_webui.apps.webui.routers.files] Error processing file: 0686eadf-e5d3-43c2-a5de-a0d1ddb157d6\n","stream":"stderr","time":"2024-10-30T18:03:59.145426112Z"}

Screenshots/Screen Recordings (if applicable):
[Attach any relevant screenshots to help illustrate the issue]

I can create a screen recording if that's useful, but I suspect it won't give much relevant information, since the error message that's displayed is pretty cryptic.

Originally created by @natea on GitHub (Oct 30, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/6597 # Bug Report --- ## Installation Method I used `docker run` to install it on an Ubuntu Linux host. ## Environment - **Open WebUI Version:** v0.3.35 - **Operating System:** Ubuntu 20.04 - **Browser (if applicable):** [e.g., Chrome 100.0, Firefox 98.0] **Confirmation:** - [x ] I have read and followed all the instructions provided in the README.md. - [x ] I am on the latest version of both Open WebUI and Ollama. - [ ] I have included the browser console logs. - [x ] I have included the Docker container logs. - [x ] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: When I upload a document, I won't get an error message. ## Actual Behavior: When I upload a document to a Knowledge Collection, it gives an error message and I get the error shown below. ## Description **Bug Summary:** When I upload a JPEG image, it fails to upload and the Docker logs show the following traceback (see below) ## Reproduction Details **Steps to Reproduce:** Upload a document, preferably larger than 1MB. ## Logs and Screenshots **Browser Console Logs:** [Include relevant browser console logs, if applicable] **Docker Container Logs:** ``` {"log":"ERROR [open_webui.apps.retrieval.main] Timeout reached while detecting encoding for /app/backend/data/uploads/0686eadf-e5d3-43c2-a5de-a0d1ddb157d6_Billing by providers in the event of a surprise bill.jpg\n","stream":"stderr","time":"2024-10-30T18:03:59.141368236Z"} {"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2024-10-30T18:03:59.141456151Z"} {"log":" File \"/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/text.py\", line 43, in lazy_load\n","stream":"stderr","time":"2024-10-30T18:03:59.14146416Z"} {"log":" text = f.read()\n","stream":"stderr","time":"2024-10-30T18:03:59.141469908Z"} {"log":" ^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.141474659Z"} {"log":" File \"\u003cfrozen codecs\u003e\", line 322, in decode\n","stream":"stderr","time":"2024-10-30T18:03:59.141479373Z"} {"log":"UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte\n","stream":"stderr","time":"2024-10-30T18:03:59.14148475Z"} {"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.141490537Z"} {"log":"During handling of the above exception, another exception occurred:\n","stream":"stderr","time":"2024-10-30T18:03:59.141629199Z"} {"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.141638744Z"} {"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2024-10-30T18:03:59.141658796Z"} {"log":" File \"/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/helpers.py\", line 43, in detect_file_encodings\n","stream":"stderr","time":"2024-10-30T18:03:59.141664005Z"} {"log":" encodings = future.result(timeout=timeout)\n","stream":"stderr","time":"2024-10-30T18:03:59.141669209Z"} {"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.141673981Z"} {"log":" File \"/usr/local/lib/python3.11/concurrent/futures/_base.py\", line 458, in result\n","stream":"stderr","time":"2024-10-30T18:03:59.141678509Z"} {"log":" raise TimeoutError()\n","stream":"stderr","time":"2024-10-30T18:03:59.14168307Z"} {"log":"TimeoutError\n","stream":"stderr","time":"2024-10-30T18:03:59.141687326Z"} {"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.141704788Z"} {"log":"During handling of the above exception, another exception occurred:\n","stream":"stderr","time":"2024-10-30T18:03:59.141708387Z"} {"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.141711895Z"} {"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2024-10-30T18:03:59.141715406Z"} {"log":" File \"/app/backend/open_webui/apps/retrieval/main.py\", line 841, in process_file\n","stream":"stderr","time":"2024-10-30T18:03:59.141718768Z"} {"log":" docs = loader.load(\n","stream":"stderr","time":"2024-10-30T18:03:59.141910142Z"} {"log":" ^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.141925709Z"} {"log":" File \"/app/backend/open_webui/apps/retrieval/loaders/main.py\", line 125, in load\n","stream":"stderr","time":"2024-10-30T18:03:59.141929206Z"} {"log":" docs = loader.load()\n","stream":"stderr","time":"2024-10-30T18:03:59.141933131Z"} {"log":" ^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.141936979Z"} {"log":" File \"/usr/local/lib/python3.11/site-packages/langchain_core/document_loaders/base.py\", line 30, in load\n","stream":"stderr","time":"2024-10-30T18:03:59.141940645Z"} {"log":" return list(self.lazy_load())\n","stream":"stderr","time":"2024-10-30T18:03:59.141953823Z"} {"log":" ^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.141957723Z"} {"log":" File \"/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/text.py\", line 46, in lazy_load\n","stream":"stderr","time":"2024-10-30T18:03:59.141978052Z"} {"log":" detected_encodings = detect_file_encodings(self.file_path)\n","stream":"stderr","time":"2024-10-30T18:03:59.141982967Z"} {"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.141986894Z"} {"log":" File \"/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/helpers.py\", line 45, in detect_file_encodings\n","stream":"stderr","time":"2024-10-30T18:03:59.141990921Z"} {"log":" raise TimeoutError(\n","stream":"stderr","time":"2024-10-30T18:03:59.141995139Z"} {"log":"TimeoutError: Timeout reached while detecting encoding for /app/backend/data/uploads/0686eadf-e5d3-43c2-a5de-a0d1ddb157d6_Billing by providers in the event of a surprise bill.jpg\n","stream":"stderr","time":"2024-10-30T18:03:59.142001362Z"} {"log":"ERROR [open_webui.apps.webui.routers.files] 400: Timeout reached while detecting encoding for /app/backend/data/uploads/0686eadf-e5d3-43c2-a5de-a0d1ddb157d6_Billing by providers in the event of a surprise bill.jpg\n","stream":"stderr","time":"2024-10-30T18:03:59.145175181Z"} {"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2024-10-30T18:03:59.145206551Z"} {"log":" File \"/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/text.py\", line 43, in lazy_load\n","stream":"stderr","time":"2024-10-30T18:03:59.145212068Z"} {"log":" text = f.read()\n","stream":"stderr","time":"2024-10-30T18:03:59.145224581Z"} {"log":" ^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.145227799Z"} {"log":" File \"\u003cfrozen codecs\u003e\", line 322, in decode\n","stream":"stderr","time":"2024-10-30T18:03:59.145230941Z"} {"log":"UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte\n","stream":"stderr","time":"2024-10-30T18:03:59.145234702Z"} {"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.145237983Z"} {"log":"During handling of the above exception, another exception occurred:\n","stream":"stderr","time":"2024-10-30T18:03:59.145241138Z"} {"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.145244452Z"} {"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2024-10-30T18:03:59.145247568Z"} {"log":" File \"/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/helpers.py\", line 43, in detect_file_encodings\n","stream":"stderr","time":"2024-10-30T18:03:59.145250871Z"} {"log":" encodings = future.result(timeout=timeout)\n","stream":"stderr","time":"2024-10-30T18:03:59.145266826Z"} {"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.14527002Z"} {"log":" File \"/usr/local/lib/python3.11/concurrent/futures/_base.py\", line 458, in result\n","stream":"stderr","time":"2024-10-30T18:03:59.145273101Z"} {"log":" raise TimeoutError()\n","stream":"stderr","time":"2024-10-30T18:03:59.145276123Z"} {"log":"TimeoutError\n","stream":"stderr","time":"2024-10-30T18:03:59.145278872Z"} {"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.145281936Z"} {"log":"During handling of the above exception, another exception occurred:\n","stream":"stderr","time":"2024-10-30T18:03:59.145285069Z"} {"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.145288592Z"} {"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2024-10-30T18:03:59.145291418Z"} {"log":" File \"/app/backend/open_webui/apps/retrieval/main.py\", line 841, in process_file\n","stream":"stderr","time":"2024-10-30T18:03:59.145295004Z"} {"log":" docs = loader.load(\n","stream":"stderr","time":"2024-10-30T18:03:59.145298529Z"} {"log":" ^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.145301637Z"} {"log":" File \"/app/backend/open_webui/apps/retrieval/loaders/main.py\", line 125, in load\n","stream":"stderr","time":"2024-10-30T18:03:59.145304777Z"} {"log":" docs = loader.load()\n","stream":"stderr","time":"2024-10-30T18:03:59.145308282Z"} {"log":" ^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.145311506Z"} {"log":" File \"/usr/local/lib/python3.11/site-packages/langchain_core/document_loaders/base.py\", line 30, in load\n","stream":"stderr","time":"2024-10-30T18:03:59.145314944Z"} {"log":" return list(self.lazy_load())\n","stream":"stderr","time":"2024-10-30T18:03:59.14531873Z"} {"log":" ^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.145322268Z"} {"log":" File \"/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/text.py\", line 46, in lazy_load\n","stream":"stderr","time":"2024-10-30T18:03:59.145325556Z"} {"log":" detected_encodings = detect_file_encodings(self.file_path)\n","stream":"stderr","time":"2024-10-30T18:03:59.145329832Z"} {"log":" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n","stream":"stderr","time":"2024-10-30T18:03:59.145332328Z"} {"log":" File \"/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/helpers.py\", line 45, in detect_file_encodings\n","stream":"stderr","time":"2024-10-30T18:03:59.145334881Z"} {"log":" raise TimeoutError(\n","stream":"stderr","time":"2024-10-30T18:03:59.145337463Z"} {"log":"TimeoutError: Timeout reached while detecting encoding for /app/backend/data/uploads/0686eadf-e5d3-43c2-a5de-a0d1ddb157d6_Billing by providers in the event of a surprise bill.jpg\n","stream":"stderr","time":"2024-10-30T18:03:59.14534134Z"} {"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.145343977Z"} {"log":"During handling of the above exception, another exception occurred:\n","stream":"stderr","time":"2024-10-30T18:03:59.145346274Z"} {"log":"\n","stream":"stderr","time":"2024-10-30T18:03:59.145348624Z"} {"log":"Traceback (most recent call last):\n","stream":"stderr","time":"2024-10-30T18:03:59.145350828Z"} {"log":" File \"/app/backend/open_webui/apps/webui/routers/files.py\", line 71, in upload_file\n","stream":"stderr","time":"2024-10-30T18:03:59.145353401Z"} {"log":" process_file(ProcessFileForm(file_id=id))\n","stream":"stderr","time":"2024-10-30T18:03:59.145356028Z"} {"log":" File \"/app/backend/open_webui/apps/retrieval/main.py\", line 903, in process_file\n","stream":"stderr","time":"2024-10-30T18:03:59.145408445Z"} {"log":" raise HTTPException(\n","stream":"stderr","time":"2024-10-30T18:03:59.145414468Z"} {"log":"fastapi.exceptions.HTTPException: 400: Timeout reached while detecting encoding for /app/backend/data/uploads/0686eadf-e5d3-43c2-a5de-a0d1ddb157d6_Billing by providers in the event of a surprise bill.jpg\n","stream":"stderr","time":"2024-10-30T18:03:59.145417264Z"} {"log":"ERROR [open_webui.apps.webui.routers.files] Error processing file: 0686eadf-e5d3-43c2-a5de-a0d1ddb157d6\n","stream":"stderr","time":"2024-10-30T18:03:59.145426112Z"} ``` **Screenshots/Screen Recordings (if applicable):** [Attach any relevant screenshots to help illustrate the issue] I can create a screen recording if that's useful, but I suspect it won't give much relevant information, since the error message that's displayed is pretty cryptic.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#29945