{"record":{"id":"509b8dd01f2d13dd","repo":"BerriAI/litellm","slug":"no-db-connected-prisma-client-prisma-client","errorCode":null,"errorMessage":"No db connected. prisma client={prisma_client}","messagePattern":"No db connected\\. prisma client=(.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/management_endpoints/team_endpoints.py","lineNumber":4847,"sourceCode":"        page: int\n            The page number to return\n        page_size: int\n            The number of items per page\n        sort_by: Optional[str]\n            Column to sort by (e.g. 'team_id', 'team_alias', 'created_at')\n        sort_order: str\n            Sort order ('asc' or 'desc')\n        status: Optional[str]\n            Filter by status. Currently supports \"deleted\" to query deleted teams.\n    \"\"\"\n    from litellm.proxy.proxy_server import (\n        prisma_client,\n        proxy_logging_obj,\n        user_api_key_cache,\n    )\n\n    if prisma_client is None:\n        raise HTTPException(\n            status_code=500,\n            detail={\"error\": f\"No db connected. prisma client={prisma_client}\"},\n        )\n\n    # --- Access control ---\n    user_id, org_admin_org_ids = await _enforce_list_team_v2_access(\n        user_api_key_dict=user_api_key_dict,\n        user_id=user_id,\n        organization_id=organization_id,\n        prisma_client=prisma_client,\n        user_api_key_cache=user_api_key_cache,\n        proxy_logging_obj=proxy_logging_obj,\n    )\n\n    if status is not None and status != \"deleted\":\n        raise HTTPException(\n            status_code=400,\n            detail={\"error\": \"Invalid status value. Currently only 'deleted' is supported.\"},","sourceCodeStart":4829,"sourceCodeEnd":4865,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/team_endpoints.py#L4829-L4865","documentation":"Error \"No db connected. prisma client={prisma_client}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/team_endpoints.py:4847 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set DATABASE_URL and connect a database to the proxy to enable this endpoint."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}