{"record":{"id":"2efdac1d4552e2c1","repo":"BerriAI/litellm","slug":"exception-provider-apiconnectionerror-message-2efdac","errorCode":null,"errorMessage":"{exception_provider} APIConnectionError - {message}\n{_redact_string(traceback.format_exc())}","messagePattern":"(.+?) APIConnectionError - (.+?)\n(.+?)","errorType":"exception","errorClass":"APIConnectionError","httpStatus":null,"severity":"error","filePath":"litellm/litellm_core_utils/exception_mapping_utils.py","lineNumber":2061,"sourceCode":"            raise Timeout(\n                message=f\"AzureException Timeout - {message}\",\n                model=model,\n                litellm_debug_info=extra_information,\n                llm_provider=\"azure\",\n                exception_status_code=original_exception.status_code,\n            )\n        else:\n            raise APIError(\n                status_code=original_exception.status_code,\n                message=f\"AzureException APIError - {message}\",\n                llm_provider=\"azure\",\n                litellm_debug_info=extra_information,\n                model=model,\n                request=httpx.Request(method=\"POST\", url=\"https://openai.com/\"),\n            )\n    else:\n        # if no status code then it is an APIConnectionError: https://github.com/openai/openai-python#handling-errors\n        raise APIConnectionError(\n            message=f\"{exception_provider} APIConnectionError - {message}\\n{_redact_string(traceback.format_exc())}\",\n            llm_provider=\"azure\",\n            model=model,\n            litellm_debug_info=extra_information,\n            request=httpx.Request(method=\"POST\", url=\"https://openai.com/\"),\n        )\n\n\ndef _map_openrouter_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:","sourceCodeStart":2043,"sourceCodeEnd":2079,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/litellm_core_utils/exception_mapping_utils.py#L2043-L2079","documentation":"Error \"{exception_provider} APIConnectionError - {message}\n{_redact_string(traceback.format_exc())}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/litellm_core_utils/exception_mapping_utils.py:2061 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check network connectivity to the provider endpoint; see traceback for details."],"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"}