BerriAI/litellm · error · AuthenticationError

AzureException AuthenticationError - {message}

Error message

AzureException AuthenticationError - {message}

What it means

Error "AzureException AuthenticationError - {message}" thrown in BerriAI/litellm.

Source

Thrown at litellm/litellm_core_utils/exception_mapping_utils.py:1988

    elif "Connection error" in error_str:
        raise APIConnectionError(
            message=f"{exception_provider} APIConnectionError - {message}",
            llm_provider=custom_llm_provider,
            model=model,
            litellm_debug_info=extra_information,
        )
    elif hasattr(original_exception, "status_code"):
        if original_exception.status_code == 400:
            raise BadRequestError(
                message=f"AzureException - {message}",
                llm_provider="azure",
                model=model,
                litellm_debug_info=extra_information,
                response=getattr(original_exception, "response", None),
                body=getattr(original_exception, "body", None),
            )
        elif original_exception.status_code == 401:
            raise AuthenticationError(
                message=f"AzureException AuthenticationError - {message}",
                llm_provider="azure",
                model=model,
                litellm_debug_info=extra_information,
                response=getattr(original_exception, "response", None),
            )
        elif original_exception.status_code == 404:
            raise NotFoundError(
                message=f"AzureException NotFoundError - {message}",
                llm_provider="azure",
                model=model,
                litellm_debug_info=extra_information,
                response=getattr(original_exception, "response", None),
            )
        elif original_exception.status_code == 408:
            raise Timeout(
                message=f"AzureException Timeout - {message}",
                model=model,

View on GitHub (pinned to 6c2dcb801b)

Solutions

  1. Check the Azure API key or Azure AD token configuration.

When it happens

Trigger: Thrown at litellm/litellm_core_utils/exception_mapping_utils.py:1988 when the library encounters an invalid state.

Common situations: See trigger scenarios.

Understand the failure class


AI-assisted analysis of BerriAI/litellm@6c2dcb801b (2026-08-15). Data as JSON: /api/errors/a39193082e864a06. Report an issue: GitHub.