{"record":{"id":"cbb5ca8ccdbc02bb","repo":"BerriAI/litellm","slug":"vllmexception-original-exception-message","errorCode":null,"errorMessage":"VLLMException - {original_exception.message}","messagePattern":"VLLMException - (.+?)","errorType":"exception","errorClass":"APIConnectionError","httpStatus":500,"severity":"error","filePath":"litellm/litellm_core_utils/exception_mapping_utils.py","lineNumber":1849,"sourceCode":"            message=f\"OllamaException: {original_exception}\",\n            llm_provider=\"ollama\",\n            model=model,\n        )\n\n\ndef _map_vllm_exception(\n    *,\n    model: str,\n    original_exception: _ProviderHTTPException,\n    custom_llm_provider: str,\n    error_str: str,\n    exception_type: str,\n    exception_provider: str,\n    extra_information: str,\n) -> None:\n    if hasattr(original_exception, \"status_code\"):\n        if original_exception.status_code == 0:\n            raise APIConnectionError(\n                message=f\"VLLMException - {original_exception.message}\",\n                llm_provider=\"vllm\",\n                model=model,\n                request=getattr(original_exception, \"request\", None),\n            )\n\n\ndef _map_azure_exception(\n    *,\n    model: str,\n    original_exception: _ProviderHTTPException,\n    custom_llm_provider: str,\n    error_str: str,\n    exception_type: str,\n    exception_provider: str,\n    extra_information: str,\n) -> None:\n    message = get_error_message(error_obj=original_exception)","sourceCodeStart":1831,"sourceCodeEnd":1867,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/litellm_core_utils/exception_mapping_utils.py#L1831-L1867","documentation":"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.","triggerScenarios":"Thrown at litellm/litellm_core_utils/exception_mapping_utils.py:1849 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the vLLM server is running and the model is loaded.","Review the original vLLM error message for the specific failure."],"exampleFix":null,"handlingStrategy":"retry","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-23T08:17:48.524Z"}