API Document Creation Breaks Document Management #1807

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

Originally created by @Amzamiviram on GitHub (Aug 17, 2024).

Bug Report

Installation Method

Docker running on Ubuntu 22.04

Environment

  • Open WebUI Version: v0.3.13 on docker running on Ubuntu 22.04
  • Ollama: v0.3.6 Windows Preview running on Windows 11

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.
  • [+] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

I create a document using the open-webui API.

Actual Behavior:

Server returns "Internal Server Error", upon my request then documents cannot not be retrieved with the Get documents API(/api/v1/documents/). The Get command also returns "Internal Server Error" and the website interface /workspace/documents page no longer can be loaded.

Description

Bug Summary:
Creating a document via the API seems to break the ability to view/upload/delete documents both in the web interface and API

Reproduction Details

Steps to Reproduce:

  1. Create the docker container, create an account, and get an auth token from the API.

  2. Create any document via the API, returns result "Internal Server Error".

From Powershell, the command being used is

Invoke-RestMethod -Method Post -Uri 'http://192.168.100.10:3000/api/v1/documents/create' -ContentType 'application/json' -Authentication Bearer -Token $Token -Body $body -AllowUnencryptedAuthentication

where $body is
{ "name": "test5", "title": "test4", "collection_name": "test3", "filename": "test", "content": "test2" }

  1. Now it is not possible to upload/view/delete any documents from either the API or web interface, both return "Internal Server Error" when attempting to get, remove, or add additional documents.

Logs and Screenshots

Browser Console Logs:
console-export-2024-8-17_12-39-5.txt

Docker Container Logs:
Docker Container.log

Originally created by @Amzamiviram on GitHub (Aug 17, 2024). # Bug Report ## Installation Method Docker running on Ubuntu 22.04 ## Environment - **Open WebUI Version:** v0.3.13 on docker running on Ubuntu 22.04 - **Ollama:** v0.3.6 Windows Preview running on Windows 11 **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. - [+] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: I create a document using the open-webui API. ## Actual Behavior: Server returns "Internal Server Error", upon my request then documents cannot not be retrieved with the Get documents API(/api/v1/documents/). The Get command also returns "Internal Server Error" and the website interface /workspace/documents page no longer can be loaded. ## Description **Bug Summary:** Creating a document via the API seems to break the ability to view/upload/delete documents both in the web interface and API ## Reproduction Details **Steps to Reproduce:** 1. Create the docker container, create an account, and get an auth token from the API. 2. Create any document via the API, returns result "Internal Server Error". From Powershell, the command being used is `Invoke-RestMethod -Method Post -Uri 'http://192.168.100.10:3000/api/v1/documents/create' -ContentType 'application/json' -Authentication Bearer -Token $Token -Body $body -AllowUnencryptedAuthentication` where $body is `{ "name": "test5", "title": "test4", "collection_name": "test3", "filename": "test", "content": "test2" }` 3. Now it is not possible to upload/view/delete any documents from either the API or web interface, both return "Internal Server Error" when attempting to get, remove, or add additional documents. ## Logs and Screenshots **Browser Console Logs:** [console-export-2024-8-17_12-39-5.txt](https://github.com/user-attachments/files/16646317/console-export-2024-8-17_12-39-5.txt) **Docker Container Logs:** [Docker Container.log](https://github.com/user-attachments/files/16646302/Docker.Container.log)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#1807