mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[GH-ISSUE #24251] Bug: Lab report upload returns 500 - UserModel object has no attribute 'get' #107235
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 @har33sh on GitHub (Apr 29, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24251
Error
Reproduction
Root Cause
In
web-ui/backend/open_webui/routers/wiki_lab_reports.py, the code calls.get()on aUserModelPydantic object as if it were a dict (e.g.user.get("id")instead ofuser.id).Impact
/api/v1/files/upload path (Textract) may still work but uses a different OCR providerEnvironment
Fix
Find the
.get()call on the user object inwiki_lab_reports.pyand replace with attribute access.@har33sh commented on GitHub (Apr 29, 2026):
Opened on wrong repo by mistake. Sorry!