mirror of
https://github.com/open-webui/oikb.git
synced 2026-11-05 01:27:25 +00:00
[PR #108] [CLOSED] Fix empty ls and status crash when the KB payload has files: null #115
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/oikb#115
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/oikb/pull/108
Author: @SAY-5
Created: 8/23/2026
Status: ❌ Closed
Base:
main← Head:fix-kb-files-listing📝 Commits (1)
add07e0Use the /knowledge/{id}/files endpoint to list KB files📊 Changes
2 files changed (+20 additions, -4 deletions)
View changed files
📝
src/oikb/cli.py(+2 -2)📝
src/oikb/client.py(+18 -2)📄 Description
Fixes #10. Recent Open WebUI returns
"files": nullfromGET /knowledge/{id}and serves the file list from the paginated/knowledge/{id}/filesroute instead, sooikb lsalways came back empty andoikb statuscrashed withTypeError: object of type 'NoneType' has no len().list_kb_filesnow calls the/filesendpoint (following its own docstring) and pages through the results, falling back to the old KB payload on 404 for older servers;statusand the doctor deep check no longer trip over a null files field. Verified against a mocked server for the paginated, legacy and empty cases.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.