{"record":{"id":"6f1e4bcec05f6184","repo":"BerriAI/litellm","slug":"invalid-webhook-url-value-for-webhook-urls-got","errorCode":null,"errorMessage":"Invalid webhook url value for: {webhook_urls}. Got type={type(_env_value)}","messagePattern":"Invalid webhook url value for: (.+?)\\. Got type=(.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/integrations/SlackAlerting/utils.py","lineNumber":48,"sourceCode":"    for alert_type, webhook_urls in alert_to_webhook_url.items():\n        if isinstance(webhook_urls, list):\n            _webhook_values: list[str] = []\n            for webhook_url in webhook_urls:\n                if \"os.environ/\" in webhook_url:\n                    _env_value = get_secret(secret_name=webhook_url)\n                    if not isinstance(_env_value, str):\n                        raise ValueError(f\"Invalid webhook url value for: {webhook_url}. Got type={type(_env_value)}\")\n                    _webhook_values.append(_env_value)\n                else:\n                    _webhook_values.append(webhook_url)\n\n            alert_to_webhook_url[alert_type] = _webhook_values\n        else:\n            _webhook_value_str: str = webhook_urls\n            if \"os.environ/\" in webhook_urls:\n                _env_value = get_secret(secret_name=webhook_urls)\n                if not isinstance(_env_value, str):\n                    raise ValueError(f\"Invalid webhook url value for: {webhook_urls}. Got type={type(_env_value)}\")\n                _webhook_value_str = _env_value\n            else:\n                _webhook_value_str = webhook_urls\n\n            alert_to_webhook_url[alert_type] = _webhook_value_str\n\n    return alert_to_webhook_url\n\n\nasync def _add_langfuse_trace_id_to_alert(\n    request_data: dict | None = None,\n) -> str | None:\n    \"\"\"\n    Returns langfuse trace url\n\n    - check:\n    -> existing_trace_id\n    -> trace_id","sourceCodeStart":30,"sourceCodeEnd":66,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/integrations/SlackAlerting/utils.py#L30-L66","documentation":"Error \"Invalid webhook url value for: {webhook_urls}. Got type={type(_env_value)}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/integrations/SlackAlerting/utils.py:48 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the webhook URLs value to a string or list of strings."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d","analyzedAt":"2026-08-15T07:12:03.035Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}