{"record":{"id":"51036480e3fba769","repo":"langflow-ai/langflow","slug":"deployment-provider-account-not-found-510364","errorCode":null,"errorMessage":"Deployment provider account not found.","messagePattern":"Deployment provider account not found\\.","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"src/backend/base/langflow/api/v1/mappers/deployments/helpers.py","lineNumber":387,"sourceCode":"    \"\"\"Return all flow-version IDs belonging to the given flows and user.\"\"\"\n    if not flow_ids:\n        return []\n    stmt = select(FlowVersion.id).where(\n        col(FlowVersion.flow_id).in_(flow_ids),\n        FlowVersion.user_id == user_id,\n    )\n    return list((await db.exec(stmt)).all())\n\n\nasync def get_owned_provider_account_or_404(\n    *,\n    provider_id: UUID,\n    user_id: UUID,\n    db: DbSession,\n) -> DeploymentProviderAccount:\n    provider_account = await get_provider_account_row_by_id(db, provider_id=provider_id, user_id=user_id)\n    if provider_account is None:\n        raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=\"Deployment provider account not found.\")\n    return provider_account\n\n\nasync def get_shared_listing_provider_account_or_404(\n    *,\n    provider_id: UUID,\n    db: DbSession,\n) -> DeploymentProviderAccount:\n    \"\"\"Resolve a provider account by id alone for the deployment-list prefilter path.\n\n    Used by ``list_deployments`` *only* when ``visible_id_prefilter`` returns a\n    concrete list (a registered authorization plugin is engaged). A shared\n    deployment lives under its *owner's* provider account, so the strict owner\n    gate (``get_owned_provider_account_or_404``) would 404 a cross-user reader\n    before the ``(owner ⊕ visible)`` SQL union in ``list_deployments_synced``\n    could surface the row. Loading the account by id here only widens which\n    ``provider_key`` may be resolved (adapter/mapper); row-level access stays\n    governed by that union plus ``ensure_deployment_permission``, and the list","sourceCodeStart":369,"sourceCodeEnd":405,"githubUrl":"https://github.com/langflow-ai/langflow/blob/976ec789d2886a86de109c044d089d68e96c9a35/src/backend/base/langflow/api/v1/mappers/deployments/helpers.py#L369-L405","documentation":"Error \"Deployment provider account not found.\" thrown in langflow-ai/langflow.","triggerScenarios":"Occurs when the referenced deployment provider account does not exist in the database.","commonSituations":"See trigger scenarios.","solutions":["Create/link a deployment provider account for the user before deploying."],"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-15T22:17:37.221Z"}