{"record":{"id":"a596ccd04ec66fb1","repo":"Mintplex-Labs/anything-llm","slug":"response-error-failed-to-fetch-settings","errorCode":null,"errorMessage":"response.error || \"Failed to fetch settings\"","messagePattern":"response\\.error \\|\\| \"Failed to fetch settings\"","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"frontend/src/models/communityHub.js","lineNumber":107,"sourceCode":"      .catch((e) => ({\n        success: false,\n        error: e.message,\n      }));\n  },\n\n  /**\n   * Get the hub settings (API key, etc.)\n   * @returns {Promise<{connectionKey: string | null, error: string | null}>}\n   */\n  getSettings: async () => {\n    return await fetch(`${API_BASE}/community-hub/settings`, {\n      method: \"GET\",\n      headers: baseHeaders(),\n    })\n      .then(async (res) => {\n        const response = await res.json();\n        if (!res.ok)\n          throw new Error(response.error || \"Failed to fetch settings\");\n        return { connectionKey: response.connectionKey, error: null };\n      })\n      .catch((e) => ({\n        connectionKey: null,\n        error: e.message,\n      }));\n  },\n\n  /**\n   * Fetch the explore items from the community hub that are publicly available.\n   * @returns {Promise<{agentSkills: {items: [], hasMore: boolean, totalCount: number}, systemPrompts: {items: [], hasMore: boolean, totalCount: number}, slashCommands: {items: [], hasMore: boolean, totalCount: number}}>}\n   */\n  fetchExploreItems: async () => {\n    return await fetch(`${API_BASE}/community-hub/explore`, {\n      method: \"GET\",\n      headers: baseHeaders(),\n    })\n      .then((res) => res.json())","sourceCodeStart":89,"sourceCodeEnd":125,"githubUrl":"https://github.com/Mintplex-Labs/anything-llm/blob/3aec848f2885144aa8f1e53b9731a04310d5d558/frontend/src/models/communityHub.js#L89-L125","documentation":"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'.","triggerScenarios":"Thrown when fetching Community Hub settings fails.","commonSituations":"Hub unreachable or invalid connection key.","solutions":["Check the Community Hub connection key.","Verify network connectivity to the hub.","Retry the request."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3aec848f2885144aa8f1e53b9731a04310d5d558","analyzedAt":"2026-08-18T10:02:21.017Z","contentChangedAt":"2026-08-18T10:02:21.017Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}