{"record":{"id":"0bbc6dc943db80ff","repo":"langflow-ai/langflow","slug":"deployment-not-found","errorCode":null,"errorMessage":"Deployment not found.","messagePattern":"Deployment not found\\.","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"src/backend/base/langflow/api/v1/mappers/deployments/helpers.py","lineNumber":469,"sourceCode":"            status_code=status.HTTP_503_SERVICE_UNAVAILABLE,\n            detail=f\"No deployment adapter registered for provider_key '{adapter_key}'.\",\n        )\n    return deployment_adapter\n\n\nasync def get_deployment_row_or_404(\n    *,\n    deployment_id: UUID,\n    user_id: UUID,\n    db: DbSession,\n) -> Deployment:\n    # ``get_deployment_db`` is share-aware when an authorization plugin is\n    # registered and ``LANGFLOW_AUTHZ_ENABLED`` is on; otherwise it stays\n    # owner-scoped. Routes still call ``ensure_deployment_permission`` after\n    # this to authorize the actor against the resolved deployment.\n    deployment_row = await get_deployment_db(db, user_id=user_id, deployment_id=deployment_id)\n    if deployment_row is None:\n        raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=\"Deployment not found.\")\n    return deployment_row\n\n\nasync def resolve_adapter_from_deployment(\n    *,\n    deployment_id: UUID,\n    user_id: UUID,\n    db: DbSession,\n) -> tuple[Deployment, DeploymentServiceProtocol, str, str | None]:\n    \"\"\"Returns ``(deployment_row, adapter, provider_key, provider_tenant_id)``.\"\"\"\n    deployment_row = await get_deployment_row_or_404(deployment_id=deployment_id, user_id=user_id, db=db)\n    # The provider account lives in the deployment owner's namespace, not the\n    # actor's. For shared deployments the actor may have no provider account\n    # of their own — scope the lookup by ``deployment_row.user_id`` so a\n    # cross-user deployment share resolves correctly.\n    provider_account = await get_owned_provider_account_or_404(\n        provider_id=deployment_row.deployment_provider_account_id,\n        user_id=deployment_row.user_id,","sourceCodeStart":451,"sourceCodeEnd":487,"githubUrl":"https://github.com/langflow-ai/langflow/blob/976ec789d2886a86de109c044d089d68e96c9a35/src/backend/base/langflow/api/v1/mappers/deployments/helpers.py#L451-L487","documentation":"Error \"Deployment not found.\" thrown in langflow-ai/langflow.","triggerScenarios":"Occurs when the referenced deployment does not exist in the database.","commonSituations":"See trigger scenarios.","solutions":["Verify the deployment id; it may have been deleted."],"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"}