mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #6205] Error uploading file for knowledge #14281
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 @mazierovictor on GitHub (Oct 16, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/6205
Bug Report
I am trying to attach files in Workspace > Knowledge and I am getting error 400: 'NoneType' object has no attribute 'ids' and I am not able to resolve it
Installation Method
My installation is docker based
Environment
Open WebUI Version: v0.3.32
I am using Groq as AI model
Operating System: Ubuntu Linux 24.04.1 (Server)
Confirmation:
Expected behavior:
I expected the file to be attached to the knowledge base without any major problems.
Actual behavior:
When trying to upload the file to the knowledge base, whether it is pdf and/or txt, the error displayed is 400: 'NoneType' object has no attribute 'ids' during the upload.
Description
Bug summary:
Given the above, the error occurs when trying to attach files within the Workspace > Knowledge Menu, when creating a knowledge base and trying to upload any file, the error 400: 'NoneType' object has no attribute 'ids' occurs during the upload and the system crashes, causing the page to need to be refreshed.
Reproduction details
Steps to reproduce:
[Describe the steps to reproduce the bug. Please be as detailed as possible.]
Logs and Screenshots
Browser console logs:
logs_browse.txt
Docker container logs:
logs_docker.txt
Screenshots/screen recordings (if applicable):

@mazierovictor commented on GitHub (Oct 16, 2024):
The error was caused because I was using a hugging face Embedding, when I returned to the standard Embedding model engine the error no longer existed.
So there is some problem with using third party Embedding.