Skip to content

Handle missing Nextcloud folders gracefully (HTTP 404)#50

Open
cero1988 wants to merge 1 commit into
open-webui:mainfrom
cero1988:patch-1
Open

Handle missing Nextcloud folders gracefully (HTTP 404)#50
cero1988 wants to merge 1 commit into
open-webui:mainfrom
cero1988:patch-1

Conversation

@cero1988

Copy link
Copy Markdown

While syncing a Nextcloud source, a single missing folder currently aborts the entire sync process:

PROPFIND ... failed: HTTP 404

This can happen when:

a configured folder has been deleted or renamed;
a shared folder is no longer available;
permissions change between sync runs.

Proposed change:

Catch HTTPStatusError with status code 404 during folder traversal (_walk_folder). Log a warning indicating that the folder was skipped. Continue processing the remaining folders/files instead of failing the whole synchronization job.

While syncing a Nextcloud source, a single missing folder currently aborts the entire sync process:

PROPFIND ... failed: HTTP 404

This can happen when:

a configured folder has been deleted or renamed;
a shared folder is no longer available;
permissions change between sync runs.

Proposed change:

Catch HTTPStatusError with status code 404 during folder traversal (_walk_folder).
Log a warning indicating that the folder was skipped.
Continue processing the remaining folders/files instead of failing the whole synchronization job.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant