mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-22 09:31:58 -05:00
[GH-ISSUE #21365] issue: TypeError when creating/listing skills with PostgreSQL backend #106451
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 @mitchell-accipio on GitHub (Feb 13, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21365
Check Existing Issues
Installation Method
Docker
Open WebUI Version
8.0.0
Ollama Version (if applicable)
n/a
Operating System
Ubuntu Server 24.04
Browser (if applicable)
Any
Confirmation
README.md.Expected Behavior
Skill Creation: Skill is created successfully with HTTP 200, user is redirected to skills list
Skill Listing: All existing skills are displayed without errors
No exceptions in backend logs
Actual Behavior
Skill Creation
HTTP 400 error returned to browser
Error message:
{"detail":"[ERROR: Error creating skill]"}However: The skill IS successfully inserted into the PostgreSQL database
Backend traceback shows
TypeErrorduringdb.refresh()callSkill Listing
HTTP 200 response but skills list fails to render
Same
TypeErrorwhen deserializing existing skill metadataBackend Traceback (Full)
Key observation:
valueis already a Python dict{'tags': []}, not a JSON string.Browser Console
Database State
Skills ARE inserted successfully:
The
metacolumn is stored correctly as JSONB.Steps to Reproduce
Prerequisites
Deploy Open WebUI using Docker with PostgreSQL backend:
Ensure PostgreSQL database is accessible and migrations have run successfully
Reproduction Steps
Scenario A: Creating a New Skill
Navigate to
http://<your-instance>/workspace/skills/createFill in the skill creation form:
ID:
testskillName:
Test SkillDescription:
Test descriptionContent:
You are a helpful assistantTags: (leave empty or add any tags)
Click "Save"
Scenario B: Listing Existing Skills
Create at least one skill using the UI (which will fail with 400 but still insert into DB)
Navigate to
http://<your-instance>/workspace/skillsObserve the skills list page fails to render
Logs & Screenshots
Additional Information
Disclaimer
Yes, this bug report used AI assistance to summarise and collate the information, but the troubleshooting was done by a human. Bleep Bloop.
Environment
Open WebUI Version:
main(commit4770285c04b81dfc3eb9ac173dfb2a8afef68105, built 2025-03-05T08:46:25.100Z)Installation Method: Docker (
ghcr.io/open-webui/open-webui:main)Database: PostgreSQL 17.4 (AWS RDS)
Database Driver: psycopg2 (via SQLAlchemy)
Docker Version: 27.5.1
Host OS: Ubuntu 24.04 LTS (Linux 6.14.0-1017-aws aarch64)
Browser: Firefox 147.0 on Linux (reproducible on all browsers)
Relevant Environment Variables
@Classic298 commented on GitHub (Feb 13, 2026):
https://github.com/open-webui/open-webui/pull/21372
@Classic298 commented on GitHub (Feb 13, 2026):
b4c3f54f96