BerriAI/litellm · error · APIConnectionError
VLLMException
Error message
VLLMException - {original_exception.message} What it means
VLLM-specific exception mapping: the underlying _ProviderHTTPException has status_code 0 (connection-level failure, no HTTP response), so it is normalized to LiteLLM's APIConnectionError with the original provider message.
Solutions
- Ensure the vLLM server is running and the model is loaded.
- Review the original vLLM error message for the specific failure.
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at litellm/litellm_core_utils/exception_mapping_utils.py:1849 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/cbb5ca8ccdbc02bb.
Report an issue: GitHub.
Appendix: source
Thrown at litellm/litellm_core_utils/exception_mapping_utils.py:1849
message=f"OllamaException: {original_exception}",
llm_provider="ollama",
model=model,
)
def _map_vllm_exception(
*,
model: str,
original_exception: _ProviderHTTPException,
custom_llm_provider: str,
error_str: str,
exception_type: str,
exception_provider: str,
extra_information: str,
) -> None:
if hasattr(original_exception, "status_code"):
if original_exception.status_code == 0:
raise APIConnectionError(
message=f"VLLMException - {original_exception.message}",
llm_provider="vllm",
model=model,
request=getattr(original_exception, "request", None),
)
def _map_azure_exception(
*,
model: str,
original_exception: _ProviderHTTPException,
custom_llm_provider: str,
error_str: str,
exception_type: str,
exception_provider: str,
extra_information: str,
) -> None:
message = get_error_message(error_obj=original_exception)View on GitHub (pinned to 77b7c6c40c)