mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 08:15:00 -05:00
API Document Creation Breaks Document Management #1807
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Amzamiviram on GitHub (Aug 17, 2024).
Bug Report
Installation Method
Docker running on Ubuntu 22.04
Environment
Confirmation:
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:
Create the docker container, create an account, and get an auth token from the API.
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 -AllowUnencryptedAuthenticationwhere $body is
{ "name": "test5", "title": "test4", "collection_name": "test3", "filename": "test", "content": "test2" }Logs and Screenshots
Browser Console Logs:
console-export-2024-8-17_12-39-5.txt
Docker Container Logs:
Docker Container.log