{"record":{"id":"e8847c07db933741","repo":"BerriAI/litellm","slug":"internal-server-error-e-e8847c","errorCode":null,"errorMessage":"Internal Server Error({e})","messagePattern":"Internal Server Error\\((.+?)\\)","errorType":"http","errorClass":"ProxyException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/management_endpoints/team_callback_endpoints.py","lineNumber":591,"sourceCode":"                \"team_id\": team_id,\n                \"success_callbacks\": team_callback_settings_obj.success_callback,\n                \"failure_callbacks\": team_callback_settings_obj.failure_callback,\n                \"callback_vars\": team_callback_settings_obj.callback_vars,\n            },\n        }\n\n    except HTTPException:\n        # Legitimate 4xx (e.g. 403 from the access guard) — re-raise\n        # without the error-level log noise that the catch-all below\n        # would produce.\n        raise\n    except ProxyException:\n        raise\n    except Exception as e:\n        verbose_proxy_logger.error(\"litellm.proxy.proxy_server.get_team_callbacks(): Exception occurred - %s\", e)\n        verbose_proxy_logger.debug(traceback.format_exc())\n        if isinstance(e, HTTPException):\n            raise ProxyException(\n                message=getattr(e, \"detail\", f\"Internal Server Error({e})\"),\n                type=ProxyErrorTypes.internal_server_error.value,\n                param=getattr(e, \"param\", \"None\"),\n                code=getattr(e, \"status_code\", status.HTTP_500_INTERNAL_SERVER_ERROR),\n            )\n        elif isinstance(e, ProxyException):\n            raise e\n        raise ProxyException(\n            message=\"Internal Server Error, \" + str(e),\n            type=ProxyErrorTypes.internal_server_error.value,\n            param=getattr(e, \"param\", \"None\"),\n            code=status.HTTP_500_INTERNAL_SERVER_ERROR,\n        )\n","sourceCodeStart":573,"sourceCodeEnd":605,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/team_callback_endpoints.py#L573-L605","documentation":"Catch-all of the team logging-disable endpoint: legitimate 4xx exceptions are re-raised untouched, but any remaining exception is logged and wrapped as ProxyException 'Internal Server Error({e})' with 500, giving the caller a uniform error envelope.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/team_callback_endpoints.py:591 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"}