{"record":{"id":"74196513d8210045","repo":"Mintplex-Labs/anything-llm","slug":"res-error-failed-to-get-flow","errorCode":null,"errorMessage":"res.error || \"Failed to get flow\"","messagePattern":"res\\.error \\|\\| \"Failed to get flow\"","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"frontend/src/models/agentFlows.js","lineNumber":61,"sourceCode":"      .catch((e) => ({\n        success: false,\n        error: e.message,\n        flows: [],\n      }));\n  },\n\n  /**\n   * Get a specific flow by UUID\n   * @param {string} uuid - The UUID of the flow to retrieve\n   * @returns {Promise<{success: boolean, error: string | null, flow: {name: string, config: object, uuid: string} | null}>}\n   */\n  getFlow: async (uuid) => {\n    return await fetch(`${API_BASE}/agent-flows/${uuid}`, {\n      method: \"GET\",\n      headers: baseHeaders(),\n    })\n      .then((res) => {\n        if (!res.ok) throw new Error(res.error || \"Failed to get flow\");\n        return res;\n      })\n      .then((res) => res.json())\n      .catch((e) => ({\n        success: false,\n        error: e.message,\n        flow: null,\n      }));\n  },\n\n  /**\n   * Execute a specific flow\n   * @param {string} uuid - The UUID of the flow to run\n   * @param {object} variables - Optional variables to pass to the flow\n   * @returns {Promise<{success: boolean, error: string | null, results: object | null}>}\n   */\n  // runFlow: async (uuid, variables = {}) => {\n  //   return await fetch(`${API_BASE}/agent-flows/${uuid}/run`, {","sourceCodeStart":43,"sourceCodeEnd":79,"githubUrl":"https://github.com/Mintplex-Labs/anything-llm/blob/3aec848f2885144aa8f1e53b9731a04310d5d558/frontend/src/models/agentFlows.js#L43-L79","documentation":"Frontend guard in AgentFlows.getFlow: the GET for a single flow by UUID returned a non-ok status, so no flow payload could be read; the server error is preferred and the generic 'Failed to get flow' message is the fallback when the response body carries no detail.","triggerScenarios":"Thrown when fetching an agent flow fails.","commonSituations":"Flow was deleted, wrong id, or server error.","solutions":["Verify the flow id exists and the user has access.","Check network connectivity to the server.","Inspect the server logs for the underlying error."],"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"}