BerriAI/litellm · error · ServiceUnavailableError
AzureException ServiceUnavailableError - {message}
Error message
AzureException ServiceUnavailableError - {message} What it means
Error "AzureException ServiceUnavailableError - {message}" thrown in BerriAI/litellm.
Source
Thrown at litellm/litellm_core_utils/exception_mapping_utils.py:2035
)
elif original_exception.status_code == 429:
raise RateLimitError(
message=f"AzureException RateLimitError - {message}",
model=model,
llm_provider="azure",
litellm_debug_info=extra_information,
response=getattr(original_exception, "response", None),
)
elif original_exception.status_code == 502:
raise BadGatewayError(
message=f"AzureException BadGatewayError - {message}",
model=model,
llm_provider="azure",
litellm_debug_info=extra_information,
response=getattr(original_exception, "response", None),
)
elif original_exception.status_code == 503:
raise ServiceUnavailableError(
message=f"AzureException ServiceUnavailableError - {message}",
model=model,
llm_provider="azure",
litellm_debug_info=extra_information,
response=getattr(original_exception, "response", None),
)
elif original_exception.status_code == 504: # gateway timeout error
raise Timeout(
message=f"AzureException Timeout - {message}",
model=model,
litellm_debug_info=extra_information,
llm_provider="azure",
exception_status_code=original_exception.status_code,
)
else:
raise APIError(
status_code=original_exception.status_code,
message=f"AzureException APIError - {message}",View on GitHub (pinned to 6c2dcb801b)
Solutions
- Azure service unavailable; retry later or configure fallbacks.
When it happens
Trigger: Thrown at litellm/litellm_core_utils/exception_mapping_utils.py:2035 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/f2c4419d6127db55.
Report an issue: GitHub.