Mintplex-Labs/anything-llm · error · Error
response.error || "Failed to fetch settings"
Error message
response.error || "Failed to fetch settings"
What it means
Frontend guard in CommunityHub.getSettings: the GET for hub settings returned a non-ok status, so connection settings could not be loaded; the response's error field is used when present, otherwise 'Failed to fetch settings'.
Solutions
- Check the Community Hub connection key.
- Verify network connectivity to the hub.
- Retry the request.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown when fetching Community Hub settings fails.
Common situations: Hub unreachable or invalid connection key.
AI-assisted analysis of Mintplex-Labs/anything-llm@3aec848f28 (2026-08-18).
Data as JSON: /api/errors/a596ccd04ec66fb1.
Report an issue: GitHub.
Appendix: source
Thrown at frontend/src/models/communityHub.js:107
.catch((e) => ({
success: false,
error: e.message,
}));
},
/**
* Get the hub settings (API key, etc.)
* @returns {Promise<{connectionKey: string | null, error: string | null}>}
*/
getSettings: async () => {
return await fetch(`${API_BASE}/community-hub/settings`, {
method: "GET",
headers: baseHeaders(),
})
.then(async (res) => {
const response = await res.json();
if (!res.ok)
throw new Error(response.error || "Failed to fetch settings");
return { connectionKey: response.connectionKey, error: null };
})
.catch((e) => ({
connectionKey: null,
error: e.message,
}));
},
/**
* Fetch the explore items from the community hub that are publicly available.
* @returns {Promise<{agentSkills: {items: [], hasMore: boolean, totalCount: number}, systemPrompts: {items: [], hasMore: boolean, totalCount: number}, slashCommands: {items: [], hasMore: boolean, totalCount: number}}>}
*/
fetchExploreItems: async () => {
return await fetch(`${API_BASE}/community-hub/explore`, {
method: "GET",
headers: baseHeaders(),
})
.then((res) => res.json())View on GitHub (pinned to 3aec848f28)