langflow-ai/langflow · error · HTTPException

No flows found.

Error message

No flows found.

What it means

Error "No flows found." thrown in langflow-ai/langflow.

Source

Thrown at src/backend/base/langflow/api/v1/flows.py:816

    db: DbSession,
):
    """Download all flows as a zip file."""
    # TODO: Full-version download (include_version parameter) is planned as a follow-up feature.
    # When implemented, add an include_version: bool = False parameter and embed version
    # entries in each flow dict using get_flow_versions_with_provider_status and strip_version_data.
    # Widen fetch when cross-user READ is supported; else owner-scoped.
    from langflow.services.deps import get_authorization_service

    authz = get_authorization_service()
    base_stmt = select(Flow).where(col(Flow.id).in_(flow_ids))  # type: ignore[attr-defined]
    if await authz.supports_cross_user_fetch() and await authz.is_enabled():
        stmt = base_stmt
    else:
        stmt = base_stmt.where(and_(Flow.user_id == user.id))
    flows = (await db.exec(stmt)).all()

    if not flows:
        raise HTTPException(status_code=404, detail="No flows found.")

    for flow in flows:
        # Plugin deny → 404 (UUID privacy).
        try:
            await ensure_flow_permission(
                user,
                FlowAction.READ,
                flow_id=flow.id,
                flow_user_id=flow.user_id,
                workspace_id=flow.workspace_id,
                folder_id=flow.folder_id,
            )
        except HTTPException as exc:
            raise deny_to_404(exc, detail="No flows found.") from exc

    return _build_flows_download_response(flows)

View on GitHub (pinned to 976ec789d2)

Solutions

  1. Create a flow first, then retry the operation.

When it happens

Trigger: Occurs when a bulk operation or download targets flow IDs that match no flows in the database.

Common situations: See trigger scenarios.


AI-assisted analysis of langflow-ai/langflow@976ec789d2 (2026-08-14). Data as JSON: /api/errors/d5140e9c52411141. Report an issue: GitHub.