{"record":{"id":"9aa661cd02945999","repo":"BerriAI/litellm","slug":"failed-to-list-access-groups-e","errorCode":null,"errorMessage":"Failed to list access groups: {e}","messagePattern":"Failed to list access groups: (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/management_endpoints/model_access_group_management_endpoints.py","lineNumber":514,"sourceCode":"        raise HTTPException(\n            status_code=500,\n            detail={\"error\": \"Database not connected.\"},\n        )\n\n    try:\n        access_groups_map: Final = await get_all_access_groups_from_db(prisma_client=prisma_client)\n\n        # Sort by access group name\n        access_groups_list: Final = sorted(\n            access_groups_map.values(),\n            key=lambda x: x.access_group,\n        )\n\n        return ListAccessGroupsResponse(access_groups=access_groups_list)\n\n    except Exception as e:\n        verbose_proxy_logger.exception(\"Error listing access groups: %s\", e)\n        raise HTTPException(\n            status_code=500,\n            detail={\"error\": f\"Failed to list access groups: {e}\"},\n        )\n\n\n@router.get(\n    \"/access_group/{access_group}/info\",\n    tags=[\"model management\"],\n    dependencies=[Depends(user_api_key_auth)],\n    response_model=AccessGroupInfo,\n)\nasync def get_access_group_info(\n    access_group: str,\n    user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),\n):\n    \"\"\"\n    Get information about a specific access group.\n    ","sourceCodeStart":496,"sourceCodeEnd":532,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/model_access_group_management_endpoints.py#L496-L532","documentation":"Catch-all around the access-group listing: any exception from get_all_access_groups_from_db or the response build (e.g. DB connectivity failures mid-query) is logged and re-raised as this 500. HTTPExceptions pass through unchanged.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/model_access_group_management_endpoints.py:514 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check proxy server logs for the underlying exception details.","Verify database connectivity."],"exampleFix":null,"handlingStrategy":"try-catch","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"}