{"record":{"id":"d5140e9c52411141","repo":"langflow-ai/langflow","slug":"no-flows-found","errorCode":null,"errorMessage":"No flows found.","messagePattern":"No flows found\\.","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"src/backend/base/langflow/api/v1/flows.py","lineNumber":816,"sourceCode":"    db: DbSession,\n):\n    \"\"\"Download all flows as a zip file.\"\"\"\n    # TODO: Full-version download (include_version parameter) is planned as a follow-up feature.\n    # When implemented, add an include_version: bool = False parameter and embed version\n    # entries in each flow dict using get_flow_versions_with_provider_status and strip_version_data.\n    # Widen fetch when cross-user READ is supported; else owner-scoped.\n    from langflow.services.deps import get_authorization_service\n\n    authz = get_authorization_service()\n    base_stmt = select(Flow).where(col(Flow.id).in_(flow_ids))  # type: ignore[attr-defined]\n    if await authz.supports_cross_user_fetch() and await authz.is_enabled():\n        stmt = base_stmt\n    else:\n        stmt = base_stmt.where(and_(Flow.user_id == user.id))\n    flows = (await db.exec(stmt)).all()\n\n    if not flows:\n        raise HTTPException(status_code=404, detail=\"No flows found.\")\n\n    for flow in flows:\n        # Plugin deny → 404 (UUID privacy).\n        try:\n            await ensure_flow_permission(\n                user,\n                FlowAction.READ,\n                flow_id=flow.id,\n                flow_user_id=flow.user_id,\n                workspace_id=flow.workspace_id,\n                folder_id=flow.folder_id,\n            )\n        except HTTPException as exc:\n            raise deny_to_404(exc, detail=\"No flows found.\") from exc\n\n    return _build_flows_download_response(flows)\n\n","sourceCodeStart":798,"sourceCodeEnd":834,"githubUrl":"https://github.com/langflow-ai/langflow/blob/976ec789d2886a86de109c044d089d68e96c9a35/src/backend/base/langflow/api/v1/flows.py#L798-L834","documentation":"Error \"No flows found.\" thrown in langflow-ai/langflow.","triggerScenarios":"Occurs when a bulk operation or download targets flow IDs that match no flows in the database.","commonSituations":"See trigger scenarios.","solutions":["Create a flow first, then retry the operation."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"976ec789d2886a86de109c044d089d68e96c9a35","analyzedAt":"2026-08-14T18:23:12.227Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}