{"record":{"id":"9c77a5051a0cd901","repo":"BerriAI/litellm","slug":"failed-to-get-access-group-info-e","errorCode":null,"errorMessage":"Failed to get access group info: {e}","messagePattern":"Failed to get access group info: (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/management_endpoints/model_access_group_management_endpoints.py","lineNumber":571,"sourceCode":"            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        if access_group not in access_groups_map:\n            raise HTTPException(\n                status_code=404,\n                detail={\"error\": f\"Access group '{access_group}' not found\"},\n            )\n\n        return access_groups_map[access_group]\n\n    except HTTPException:\n        raise\n    except Exception as e:\n        verbose_proxy_logger.exception(\"Error getting access group info for '%s': %s\", access_group, e)\n        raise HTTPException(\n            status_code=500,\n            detail={\"error\": f\"Failed to get access group info: {e}\"},\n        )\n\n\n@router.put(\n    \"/access_group/{access_group}/update\",\n    tags=[\"model management\"],\n    dependencies=[Depends(user_api_key_auth)],\n    response_model=NewModelGroupResponse,\n)\nasync def update_access_group(\n    access_group: str,\n    data: UpdateModelGroupRequest,\n    user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),\n):\n    \"\"\"\n    Update an access group's model names.","sourceCodeStart":553,"sourceCodeEnd":589,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/model_access_group_management_endpoints.py#L553-L589","documentation":"Catch-all around access-group info retrieval: unexpected exceptions during the DB fetch are logged with the group name and re-raised as this 500. The 404 not-found case is raised separately as an HTTPException and passes through.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/model_access_group_management_endpoints.py:571 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check proxy server logs for the underlying exception details."],"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-14T00:17:10.932Z"}