Mintplex-Labs/anything-llm · error
Error removing the logo.
Error message
Error removing the logo.
What it means
Catch block of GET /system/remove-logo: deleting the custom logo file or resetting logo_filename to the default in SystemSettings threw. The client receives this message indicating the logo reset did not complete.
Source
Thrown at server/endpoints/system.js:1029
app.get(
"/system/remove-logo",
[validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])],
async (_request, response) => {
try {
const currentLogoFilename = await SystemSettings.currentLogoFilename();
await removeCustomLogo(currentLogoFilename);
const { success, error } = await SystemSettings._updateSettings({
logo_filename: LOGO_FILENAME,
});
return response.status(success ? 200 : 500).json({
message: success
? "Logo removed successfully."
: error || "Failed to update with new logo.",
});
} catch (error) {
console.error("Error processing the logo removal:", error);
response.status(500).json({ message: "Error removing the logo." });
}
}
);
app.get("/system/api-keys", [validatedRequest], async (_, response) => {
try {
if (response.locals.multiUserMode) {
return response.sendStatus(401).end();
}
const apiKeys = await ApiKey.where({});
return response.status(200).json({
apiKeys,
error: null,
});
} catch (error) {
console.error(error);
response.status(500).json({View on GitHub (pinned to 20f6d3546c)
Solutions
- Check server logs for the delete error.
- Verify the logo file exists and the process has permission to remove it.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at server/endpoints/system.js:1015 when the library encounters an invalid state.
Common situations: Removing the custom logo failed on the filesystem.
AI-assisted analysis of Mintplex-Labs/anything-llm@20f6d3546c (2026-08-18).
Data as JSON: /api/errors/bb0a25c6495e0cca.
Report an issue: GitHub.