langflow-ai/langflow · error · HTTPException

Deployment not found.

Error message

Deployment not found.

What it means

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

Source

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

            status_code=status.HTTP_503_SERVICE_UNAVAILABLE,
            detail=f"No deployment adapter registered for provider_key '{adapter_key}'.",
        )
    return deployment_adapter


async def get_deployment_row_or_404(
    *,
    deployment_id: UUID,
    user_id: UUID,
    db: DbSession,
) -> Deployment:
    # ``get_deployment_db`` is share-aware when an authorization plugin is
    # registered and ``LANGFLOW_AUTHZ_ENABLED`` is on; otherwise it stays
    # owner-scoped. Routes still call ``ensure_deployment_permission`` after
    # this to authorize the actor against the resolved deployment.
    deployment_row = await get_deployment_db(db, user_id=user_id, deployment_id=deployment_id)
    if deployment_row is None:
        raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="Deployment not found.")
    return deployment_row


async def resolve_adapter_from_deployment(
    *,
    deployment_id: UUID,
    user_id: UUID,
    db: DbSession,
) -> tuple[Deployment, DeploymentServiceProtocol, str, str | None]:
    """Returns ``(deployment_row, adapter, provider_key, provider_tenant_id)``."""
    deployment_row = await get_deployment_row_or_404(deployment_id=deployment_id, user_id=user_id, db=db)
    # The provider account lives in the deployment owner's namespace, not the
    # actor's. For shared deployments the actor may have no provider account
    # of their own — scope the lookup by ``deployment_row.user_id`` so a
    # cross-user deployment share resolves correctly.
    provider_account = await get_owned_provider_account_or_404(
        provider_id=deployment_row.deployment_provider_account_id,
        user_id=deployment_row.user_id,

View on GitHub (pinned to 976ec789d2)

Solutions

  1. Verify the deployment id; it may have been deleted.

When it happens

Trigger: Occurs when the referenced deployment 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/0bbc6dc943db80ff. Report an issue: GitHub.