langflow-ai/langflow · error · HTTPException

Deployment provider account not found.

Error message

Deployment provider account not found.

What it means

Error "Deployment provider account not found." thrown in langflow-ai/langflow.

Source

Thrown at src/backend/base/langflow/api/v1/mappers/deployments/helpers.py:387

    """Return all flow-version IDs belonging to the given flows and user."""
    if not flow_ids:
        return []
    stmt = select(FlowVersion.id).where(
        col(FlowVersion.flow_id).in_(flow_ids),
        FlowVersion.user_id == user_id,
    )
    return list((await db.exec(stmt)).all())


async def get_owned_provider_account_or_404(
    *,
    provider_id: UUID,
    user_id: UUID,
    db: DbSession,
) -> DeploymentProviderAccount:
    provider_account = await get_provider_account_row_by_id(db, provider_id=provider_id, user_id=user_id)
    if provider_account is None:
        raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Deployment provider account not found.")
    return provider_account


async def get_shared_listing_provider_account_or_404(
    *,
    provider_id: UUID,
    db: DbSession,
) -> DeploymentProviderAccount:
    """Resolve a provider account by id alone for the deployment-list prefilter path.

    Used by ``list_deployments`` *only* when ``visible_id_prefilter`` returns a
    concrete list (a registered authorization plugin is engaged). A shared
    deployment lives under its *owner's* provider account, so the strict owner
    gate (``get_owned_provider_account_or_404``) would 404 a cross-user reader
    before the ``(owner ⊕ visible)`` SQL union in ``list_deployments_synced``
    could surface the row. Loading the account by id here only widens which
    ``provider_key`` may be resolved (adapter/mapper); row-level access stays
    governed by that union plus ``ensure_deployment_permission``, and the list

View on GitHub (pinned to 976ec789d2)

Solutions

  1. Create/link a deployment provider account for the user before deploying.

When it happens

Trigger: Occurs when the referenced deployment provider account does not exist in the database.

Common situations: See trigger scenarios.


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