{"record":{"id":"8ba479868a9d3547","repo":"BerriAI/litellm","slug":"f-no-db-connected-prisma-client-prisma-client","errorCode":null,"errorMessage":"f\"No db connected. prisma client={prisma_client}\"","messagePattern":"f\"No db connected\\. prisma client=(.+?)\"","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/management_endpoints/internal_user_endpoints.py","lineNumber":2069,"sourceCode":"        team: Optional[str]\n            Filter users by team id. Will match if user has this team in their teams array.\n        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. 'user_id', 'user_email', 'created_at', 'spend')\n        sort_order: Optional[str]\n            Sort order ('asc' or 'desc')\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    # Server-side authorization: proxy admins see all, org admins see only their org(s)\n    organization_ids = await _authorize_user_list_request(\n        user_api_key_dict=user_api_key_dict,\n        organization_ids=organization_ids,\n        prisma_client=prisma_client,\n        user_api_key_cache=user_api_key_cache,\n        proxy_logging_obj=proxy_logging_obj,\n    )\n\n    # Calculate skip and take for pagination\n    skip: Final = (page - 1) * page_size\n\n    # Build where conditions based on provided parameters\n    where_conditions: dict[str, object] = {}","sourceCodeStart":2051,"sourceCodeEnd":2087,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/internal_user_endpoints.py#L2051-L2087","documentation":"Error \"f\"No db connected. prisma client={prisma_client}\"\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/internal_user_endpoints.py:2069 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set DATABASE_URL to a valid PostgreSQL connection string and restart the proxy.","Verify the database is reachable from the proxy host and credentials are correct."],"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"}