[PR #21047] [MERGED] fix(files): handle 404 error File Manager #48948

Closed
opened 2026-04-30 01:11:12 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/21047
Author: @Classic298
Created: 1/29/2026
Status: Merged
Merged: 1/30/2026
Merged by: @tjbck

Base: devHead: file-management-404-handling


📝 Commits (2)

  • adae0c3 fix 404
  • 6aabdd0 Merge branch 'dev' into file-management-404-handling

📊 Changes

1 file changed (+20 additions, -9 deletions)

View changed files

📝 src/lib/components/layout/FilesModal.svelte (+20 -9)

📄 Description

Summary

Fixes infinite spinner when File Manager returns 404 (no files exist)

Changes

  • Added try-catch error handling to doSearch and loadMoreFiles functions
  • When API returns 404 or any error, show "No files found" instead of infinite spinner

Contributor License Agreement

By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.

Note

Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/21047 **Author:** [@Classic298](https://github.com/Classic298) **Created:** 1/29/2026 **Status:** ✅ Merged **Merged:** 1/30/2026 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `file-management-404-handling` --- ### 📝 Commits (2) - [`adae0c3`](https://github.com/open-webui/open-webui/commit/adae0c3284e7d3600745bd849094cc06c38f03c7) fix 404 - [`6aabdd0`](https://github.com/open-webui/open-webui/commit/6aabdd0caf070fcfba2227d33db2cfd1071439bf) Merge branch 'dev' into file-management-404-handling ### 📊 Changes **1 file changed** (+20 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/layout/FilesModal.svelte` (+20 -9) </details> ### 📄 Description ## Summary Fixes infinite spinner when File Manager returns 404 (no files exist) ## Changes - Added try-catch error handling to doSearch and loadMoreFiles functions - When API returns 404 or any error, show "No files found" instead of infinite spinner ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. > [!NOTE] > Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-30 01:11:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#48948