{"record":{"id":"3612b7cd89856268","repo":"BerriAI/litellm","slug":"access-group-access-group-not-found","errorCode":null,"errorMessage":"Access group '{access_group}' not found","messagePattern":"Access group '(.+?)' not found","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"litellm/proxy/management_endpoints/model_access_group_management_endpoints.py","lineNumber":560,"sourceCode":"    Returns:\n    - AccessGroupInfo with the access group details\n    \n    Raises:\n    - HTTPException 404: If access group not found\n    \"\"\"\n    from litellm.proxy.proxy_server import prisma_client\n\n    if prisma_client is None:\n        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        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\",","sourceCodeStart":542,"sourceCodeEnd":578,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/model_access_group_management_endpoints.py#L542-L578","documentation":"Lookup guard on GET /access_group/{access_group}/info: the name is absent from the map returned by get_all_access_groups_from_db, so no group with that exact name exists. Case-sensitive match; 404 returned.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/model_access_group_management_endpoints.py:560 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the access group name. List groups via the list endpoint to find valid names."],"exampleFix":null,"handlingStrategy":"validation","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"}