BerriAI/litellm · error · ValueError
Invalid webhook url value for: {webhook_urls}. Got type={typ
Error message
Invalid webhook url value for: {webhook_urls}. Got type={type(_env_value)} What it means
Error "Invalid webhook url value for: {webhook_urls}. Got type={type(_env_value)}" thrown in BerriAI/litellm.
Source
Thrown at litellm/integrations/SlackAlerting/utils.py:48
for alert_type, webhook_urls in alert_to_webhook_url.items():
if isinstance(webhook_urls, list):
_webhook_values: list[str] = []
for webhook_url in webhook_urls:
if "os.environ/" in webhook_url:
_env_value = get_secret(secret_name=webhook_url)
if not isinstance(_env_value, str):
raise ValueError(f"Invalid webhook url value for: {webhook_url}. Got type={type(_env_value)}")
_webhook_values.append(_env_value)
else:
_webhook_values.append(webhook_url)
alert_to_webhook_url[alert_type] = _webhook_values
else:
_webhook_value_str: str = webhook_urls
if "os.environ/" in webhook_urls:
_env_value = get_secret(secret_name=webhook_urls)
if not isinstance(_env_value, str):
raise ValueError(f"Invalid webhook url value for: {webhook_urls}. Got type={type(_env_value)}")
_webhook_value_str = _env_value
else:
_webhook_value_str = webhook_urls
alert_to_webhook_url[alert_type] = _webhook_value_str
return alert_to_webhook_url
async def _add_langfuse_trace_id_to_alert(
request_data: dict | None = None,
) -> str | None:
"""
Returns langfuse trace url
- check:
-> existing_trace_id
-> trace_idView on GitHub (pinned to 6c2dcb801b)
Solutions
- Set the webhook URLs value to a string or list of strings.
When it happens
Trigger: Thrown at litellm/integrations/SlackAlerting/utils.py:48 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@6c2dcb801b (2026-08-15).
Data as JSON: /api/errors/6f1e4bcec05f6184.
Report an issue: GitHub.