RAG Document upload not handling 413 error with proxy (size too big) #1205

Closed
opened 2025-11-11 14:40:06 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @MHugonKaliop on GitHub (Jun 11, 2024).

Bug Report

Description

Bug Summary:
I use an Nginx proxy to handle SSL connection to openUI.
If I try to upload a document exceeding the max value configured in Nginx, on WebUI interface, nothing shows that an error occured. As an enduser, I'll wait undefinitely, I'm still seeing the "work in progress" animation, even if the web console shows that the server answered with an HTTP 413 error

Steps to Reproduce:
Use a Nginx proxy between the user browser and OpenWebUI application.
Try to upload a file exceeding Nginx configuration

Expected Behavior:
An error should be seen on the interface, saying that the file is too large

Actual Behavior:
No error is shown, the picto animation for a file upload is seen undefinitely

Environment

  • Open WebUI Version: 0.3.2

  • Ollama (if applicable): 0.1.42

  • Operating System: Ubuntu 22

  • Browser (if applicable): Chrome 125.0.6422.141

Reproduction Details

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.

Logs and Screenshots

Browser Console Logs:
Request URL: https://xxxxxx/rag/api/v1/doc
Request Method: POST
Status Code: 413 Request Entity Too Large
Remote Address: xxxx:443
Referrer Policy: strict-origin-when-cross-origin

Docker Container Logs:

Screenshots (if applicable):
OpenWebUi

Installation Method

I'm using the docker installation for OpenWebUI

Additional Information

Note

If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!

Originally created by @MHugonKaliop on GitHub (Jun 11, 2024). # Bug Report ## Description **Bug Summary:** I use an Nginx proxy to handle SSL connection to openUI. If I try to upload a document exceeding the max value configured in Nginx, on WebUI interface, nothing shows that an error occured. As an enduser, I'll wait undefinitely, I'm still seeing the "work in progress" animation, even if the web console shows that the server answered with an HTTP 413 error **Steps to Reproduce:** Use a Nginx proxy between the user browser and OpenWebUI application. Try to upload a file exceeding Nginx configuration **Expected Behavior:** An error should be seen on the interface, saying that the file is too large **Actual Behavior:** No error is shown, the picto animation for a file upload is seen undefinitely ## Environment - **Open WebUI Version:** 0.3.2 - **Ollama (if applicable):** 0.1.42 - **Operating System:** Ubuntu 22 - **Browser (if applicable):** Chrome 125.0.6422.141 ## Reproduction Details **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. - [X] I have included the browser console logs. - [X] I have included the Docker container logs. ## Logs and Screenshots **Browser Console Logs:** Request URL: https://xxxxxx/rag/api/v1/doc Request Method: POST Status Code: 413 Request Entity Too Large Remote Address: xxxx:443 Referrer Policy: strict-origin-when-cross-origin **Docker Container Logs:** **Screenshots (if applicable):** ![OpenWebUi](https://github.com/open-webui/open-webui/assets/131153014/e45393c1-2d24-4ae5-bda8-e5a8fb9797d7) ## Installation Method I'm using the docker installation for OpenWebUI ## Additional Information ## Note If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#1205