{"record":{"id":"757cb3518edf94e2","repo":"BerriAI/litellm","slug":"failed-to-update-access-group-e","errorCode":null,"errorMessage":"Failed to update access group: {e}","messagePattern":"Failed to update access group: (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/management_endpoints/model_access_group_management_endpoints.py","lineNumber":724,"sourceCode":"            access_group=access_group,\n        )\n\n        verbose_proxy_logger.info(\n            \"Successfully updated access group '%s' with %s models updated\", access_group, models_updated\n        )\n\n        return NewModelGroupResponse(\n            access_group=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 updating access group '%s': %s\", access_group, e)\n        raise HTTPException(\n            status_code=500,\n            detail={\"error\": f\"Failed to update access group: {e}\"},\n        )\n\n\n@router.delete(\n    \"/access_group/{access_group}/delete\",\n    tags=[\"model management\"],\n    dependencies=[Depends(user_api_key_auth)],\n    response_model=DeleteModelGroupResponse,\n)\nasync def delete_access_group(\n    access_group: str,\n    user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),\n):\n    \"\"\"\n    Delete an access group.\n    ","sourceCodeStart":706,"sourceCodeEnd":742,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/model_access_group_management_endpoints.py#L706-L742","documentation":"Catch-all around the access-group update transaction: after validation and existence checks pass, any unexpected exception from re-tagging deployments or the DB write is logged and re-raised as this 500.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/model_access_group_management_endpoints.py:724 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check proxy server logs for the underlying exception details.","Verify the access group exists and referenced models are valid."],"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"}