{"record":{"id":"3c988a76a373aa07","repo":"BerriAI/litellm","slug":"failed-to-create-access-group-e","errorCode":null,"errorMessage":"Failed to create access group: {e}","messagePattern":"Failed to create access group: (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/management_endpoints/model_access_group_management_endpoints.py","lineNumber":464,"sourceCode":"            access_group=data.access_group,\n        )\n\n        verbose_proxy_logger.info(\n            \"Successfully created access group '%s' with %s models updated\", data.access_group, models_updated\n        )\n\n        return NewModelGroupResponse(\n            access_group=data.access_group,\n            model_names=data.model_names,\n            model_ids=data.model_ids,\n            models_updated=models_updated,\n        )\n\n    except HTTPException:\n        raise\n    except Exception as e:\n        verbose_proxy_logger.exception(\"Error creating access group '%s': %s\", data.access_group, e)\n        raise HTTPException(\n            status_code=500,\n            detail={\"error\": f\"Failed to create access group: {e}\"},\n        )\n\n\n@router.get(\n    \"/access_group/list\",\n    tags=[\"model management\"],\n    dependencies=[Depends(user_api_key_auth)],\n    response_model=ListAccessGroupsResponse,\n)\nasync def list_access_groups(\n    user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),\n):\n    \"\"\"\n    List all access groups.\n    \n    Returns a list of all access groups with their model names and deployment counts.","sourceCodeStart":446,"sourceCodeEnd":482,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/model_access_group_management_endpoints.py#L446-L482","documentation":"Catch-all wrapper around the access-group creation transaction. Validation errors (HTTPException) are re-raised unchanged; any other exception from DB reads/writes or router upserts is logged with the group name and re-raised as this 500.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/model_access_group_management_endpoints.py:464 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check proxy server logs for the underlying exception details.","Verify database connectivity and that referenced models exist."],"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"}