mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #21393] [CLOSED] fix: handle already-deserialized JSON values from PostgreSQL #64920
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/21393
Author: @lewisco
Created: 2/13/2026
Status: ❌ Closed
Base:
main← Head:fix/jsonfield-double-deserialization📝 Commits (1)
f2d93a8fix: handle already-deserialized JSON values from PostgreSQL📊 Changes
1 file changed (+5 additions, -2 deletions)
View changed files
📝
backend/open_webui/internal/db.py(+5 -2)📄 Description
Summary
JSONField.process_result_valueunconditionally callsjson.loads()on column values, but PostgreSQL'spsycopg2driver with native JSON handling returns Python dicts/lists directly from JSONB columnsTypeError: the JSON object must be str, bytes or bytearray, not dicton PostgreSQL deploymentsdictorlistTest plan
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.