-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Labels
bugSomething isn't workingSomething isn't workingneeds info / can't replicateIssues that require additional information and/or cannot currently be replicated, but possible bugIssues that require additional information and/or cannot currently be replicated, but possible bugpossible bugBug was reported but is not confirmed or is unable to be replicated.Bug was reported but is not confirmed or is unable to be replicated.
Description
How are you running AnythingLLM?
Docker (local)
What happened?
Bug Description
When there's a .json file in a document subfolder that is malformed or incomplete (e.g. empty, partially written), the API /api/system/local-files crashes with a 500 Internal Server Error.
This only happens after recent updates (within the last 2-3 days). Previously the same documents would load fine.
How to Reproduce
- Add a
.jsonfile with invalid content (e.g. empty,{}) - Start the server
- Call
/api/system/local-files - Response is
500, and logs show:
Are there known steps to reproduce?
Why this is critical
One broken file causes the entire API to fail, making the UI unable to load any document folders.
Suggested Fix
Wrap the fileToPickerData(...) in a .catch() block or add a try/catch in viewLocalFiles() to ensure broken files don’t crash the whole interface.
System Info
- Container:
mintplexlabs/anythingllm:latest - Reproducible: Yes
- Workaround: Manually remove problematic
.jsonfiles
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds info / can't replicateIssues that require additional information and/or cannot currently be replicated, but possible bugIssues that require additional information and/or cannot currently be replicated, but possible bugpossible bugBug was reported but is not confirmed or is unable to be replicated.Bug was reported but is not confirmed or is unable to be replicated.