Is it LiteLLM or the provider? Triage for gateway errors

Learn how to read a LiteLLM error payload, separate provider failures from gateway failures, recognize fallback exhaustion, and send each error to the team that owns it.

On this page

Is it LiteLLM or the provider? How to triage a gateway error first

The error text tells you where a failure originated. When a LiteLLM error names a provider exception such as AnthropicException, OpenAIException, AzureException, BedrockException or VertexAIException, the failure came from the upstream provider. When the error carries no provider name, the failure came from the LiteLLM gateway itself. That single check decides which team acts first. The gateway gives callers one OpenAI-format entry point across more than 100 providers, and it adds routing, retries and cooldowns between the caller and the model. That layer is useful, but it means a caller's failed request may have been retried on several deployments before it reached the client, so the final error may not describe the first thing that went wrong. Ownership is ambiguous unless the on-call engineer reads the payload before paging anyone.

Use this runbook after the gateway rollout, during any incident that touches model calls, and whenever callers report failed requests. Start by copying the full error payload, the request's key or team alias, the model name and the time of the failure. Then separate three cases: a provider exception name points to the provider owner, a gateway-originated error without a provider name points to the platform team that runs the proxy, and a fallback exhaustion error means every configured deployment in the route failed, so you must read the attempts behind it. Confirm with your own team which failure modes it owns, such as budget or rate limit rejections from virtual keys, and which it hands to the provider or application owner. Also confirm whether your gateway version exposes the attempt history in logs, because that detail determines how quickly you can identify the failing deployment. The LiteLLM error diagnosis docs are the natural next read for the exact payload format in your release.

Which error classes belong to the provider, the gateway or your own config

Most LiteLLM errors fall into a few classes, and each class has a different first owner. The payload, especially whether it names a provider exception, is the fastest way to sort an error before anyone starts changing settings. Use the cards below to decide who reads the error first and what to check before escalating.

Provider-side errors

These are failures raised by the upstream model platform, such as rate limits on the provider account, a provider outage, or a model name the provider no longer serves. The payload usually carries a provider exception name, for example AnthropicException, OpenAIException or BedrockException. The first owner is the team that manages the provider account and its quotas, and they should check the provider status and account limits before anyone changes the gateway.

Error diagnosis docs

Virtual key authentication failures

These errors mean the caller's virtual key was rejected by the gateway itself, before any provider was contacted. The payload has no provider exception name, which places the failure in the gateway. The platform team that issues keys acts first, checking whether the key is active, whether it was copied correctly, and whether the caller is sending it in the expected header.

Budget, TPM and RPM limit errors

These errors appear when a key, user or team has used its budget or exceeded its token or request-per-minute limits. The gateway enforces these before a request reaches the provider, so the payload carries no provider name. The FinOps or platform owner of that budget decides whether to raise the limit temporarily or wait for the window to reset, and should confirm the limit that actually applied to the caller.

Model access and routing errors

A key restricted to specific models can be refused for a model it does not hold, and the router can return an error when no deployment is available to serve the request. Fallback exhaustion appears here when every listed deployment failed or was cooling down. The platform team that owns the model group and routing configuration acts first, reviewing the model list, priorities and cooldown state for the affected group.

Database and Redis dependency failures

When PostgreSQL or Redis cannot be reached or is slow, the gateway can fail requests that depend on virtual keys, spend tracking or shared rate limits. The error comes from the gateway's own dependency calls, not from the provider. The platform or database team checks connectivity, connection limits and health of those services first, and the gateway owner confirms which requests were affected.

Caller-side request format problems

Some errors come from requests that do not match the OpenAI request format the gateway expects, such as malformed JSON, missing fields or unsupported parameters for the chosen model. The payload usually points at the request itself and rarely names a provider. The application team that owns the calling code fixes these first, after confirming the same request works against a known-good model in a test environment.

What fallback exhaustion looks like and how to read it

This sequence shows how the LiteLLM router moves through retries, cooldowns and fallback deployments before it returns an error, so you can tell which failed attempt, provider or route actually caused the request to fail. It turns a single final error into a complete attempt chain your team can assign to an owner.

  1. Confirm the router behavior in your version

    Before reading any logs, the platform owner checks the routing documentation and the release notes for the exact LiteLLM version in production, and records how that version reports retries, cooldowns and fallback attempts. Router behavior and error text can change between releases, so do not assume the wording in this guide matches your build. The step is done when the team has a short note of the retry count, cooldown settings, fallback order and the error format from a test request against a non-production route.

  2. Capture the request and its final error

    The on-call engineer pulls the failing request ID, timestamp, virtual key alias, requested model name and the full error payload returned to the caller. Record whether the error text contains a provider exception name such as AnthropicException, OpenAIException or AzureException, or whether it has no provider name at all. The step is done when the team knows whether the final error came from a provider call or from the gateway itself, which determines the first owner to contact.

  3. Reconstruct the attempt chain from logs

    Using the request ID, the operator searches gateway logs for every deployment the router touched for that request, in order. Each attempt should show the deployment or model group member, the provider, the outcome, and whether a retry or cooldown followed. Log fields and levels vary by configuration, so confirm with your deployment which fields are emitted before relying on this search. The step is done when the team has a numbered list of attempts that ends at the final error.

  4. Check cooldowns and priority order

    The operator compares the attempt chain with the configured priority order for the model group and notes which deployments were skipped because they were already in cooldown. A skipped deployment may have failed earlier in a previous request, so the cooldown state can explain why a healthy provider was not tried. The step is done when the team can say which candidates were attempted, which were bypassed, and why.

  5. Compare each attempted deployment

    For each attempted deployment, the engineer compares the provider, region or endpoint, credential reference, model name and error class. Look for patterns such as the same provider failing across several deployments, one deployment with a missing or expired credential, or a model name that exists on one endpoint only. The step is done when each attempt has a short classification: provider outage or rate limit, credential or configuration fault, or request-level rejection.

  6. Classify the root cause

    The platform owner decides whether the root cause is a single provider, a bad route, or a gateway configuration issue. A single provider fault shows failures across deployments that share that provider. A bad route shows the same model group pointing to an incorrect or retired model name. A configuration issue shows missing credentials, wrong priority order or cooldown settings that cause the wrong candidate to be tried. The step is done when one category is assigned with the evidence that supports it.

  7. Assign the owner and collect evidence

    The operator routes the incident to the owner for that category: the provider account owner for provider faults, the model or routing owner for route problems, and the gateway platform team for configuration issues. The handoff packet includes the request ID, the attempt chain, the deployment comparison and the exact error text from the version in use. The step is done when the receiving owner confirms they have the packet and can reproduce the failure or name the next check.

Which team owns each kind of error

The platform or gateway team owns the LiteLLM proxy itself: its configuration, model routes, virtual keys, budgets, routing settings and the gateway pods that serve traffic. When an error payload carries no provider exception name, the failure came from the gateway, and this team is the first owner to check. Errors such as a missing or disabled model alias, a key that is blocked by its budget or model restrictions, or a routing configuration that leaves no eligible deployment usually trace back to settings this team controls.

  • Model route and alias: Confirm the requested model name exists in the proxy configuration and maps to the intended deployment.
  • Virtual key limits: Check the key's budget, TPM and RPM limits, and allowed models against the request that failed.
  • Router state: Review retries, cooldowns and priority ordering for the affected model group.
  • Gateway pods: Look at restarts, readiness status and recent configuration changes or upgrades.

Handoff message: include the request ID, the key alias (never the key value), the model name requested, the full error payload, the timestamp in UTC, and any configuration change made in the previous 24 hours. Confirm the payload contains no provider exception name before filing here.

Triage actions by error source and when each fits

This table compares five triage paths, each keyed to a signal in the error payload, and shows the first action and escalation target for each. Read it top to bottom: the first signal that matches your payload tells you which team to engage first. The main takeaway is that the provider name in the exception decides the first hop, and gateway-side checks should run before you open a provider ticket.

Signal in the payloadLikely originFirst actionEscalation target
Exception names a provider such as OpenAIException, AnthropicException or BedrockExceptionUpstream provider call failed through the gatewayCheck the provider status page and the account behind the route for quota, billing or key stateThe provider's support channel, with the gateway request ID and timestamp
Error with no provider exception name, returned by the proxy itselfLiteLLM gateway logicCheck the virtual key, model allowlist, budget and rate limit attached to the callerYour platform team first, then LiteLLM support if the config is correct
Fallback or failover exhausted across several model deploymentsRouter state after retries and cooldownsCompare the error from each deployment in the logs and confirm which ones are cooling downYour platform team with the router configuration, then LiteLLM support
Errors only on some deployments while others in the same model group succeedSingle provider route or credential in the model groupTest that one deployment directly and review its credential and endpoint settingsThe team that owns that provider account, then the provider if the direct call also fails
Intermittent failures or slow responses with database or Redis errors in the gateway logsGateway dependency such as PostgreSQL or RedisCheck database and Redis reachability and connection counts from the gateway podsYour database or cache operations team, with gateway logs for the same window
Failures that began after a gateway upgrade or config changeGateway release or configurationCompare the running version and recent config diffs against the time the errors startedYour platform team, then LiteLLM support with the version and config change

Build a triage runbook for your LiteLLM gateway

This sequence turns error triage from ad hoc guesswork into a written runbook that names an owner for each error class, keeps the evidence needed to tell provider failures from gateway failures, and has been tested once before a real incident.

  1. Name an owner for each error class

    Agree in writing which team owns each kind of error: provider-side failures (model unavailable, quota or rate limit at the upstream provider), gateway-side failures (authentication, virtual key budget or limit rejections, routing and fallback exhaustion, proxy timeouts), and client-side failures (malformed requests). Record a named on-call role for each class and the escalation path to the provider's account team or your internal platform team. Done when every class in the runbook has one owning team and a contact that someone has confirmed is current.

  2. Confirm logs capture the full error payload

    Check that the gateway's logs keep the complete error body returned to the caller, including the exception name, status code and the deployment or model that failed, and that the log pipeline does not truncate or drop those fields. Confirm the retention period with whoever owns the log store, since that setting lives outside LiteLLM. Done when you can pull one recent failed request from logs and see the provider exception name, if one was present, without consulting the caller.

  3. Map each fallback chain to its deployments

    List every model group that has fallbacks and, for each one, the ordered deployments that make up the chain, with the provider and region behind each. Note which chains share a provider account or quota, because a single upstream limit can exhaust several entries at once. Keep this map in version control beside the routing configuration. Done when someone outside the platform team can read the map and say which provider sits behind each step.

  4. Document retry and cooldown settings

    Copy the retry count, cooldown behavior and priority ordering from the routing configuration into the runbook, and state what each value does during an incident. A deployment that has failed repeatedly is taken out of rotation for a cooldown period, so an operator reading logs needs to know when a route is missing because of cooldown rather than because it was removed. Confirm the exact keys and values against the routing documentation for your release, not from memory. Done when a second person can reproduce the current effective settings from the config file alone.

  5. Verify the origin label on a sample failure

    In a non-production environment, send a request that fails at the provider (for example, with a deliberately invalid provider credential for a test deployment) and confirm the error contains a provider exception name. Then send a request the gateway rejects itself, such as a key over its budget or a model the key is not allowed to use, and confirm the error has no provider name. Write both sample payloads into the runbook as reference. Done when each test produces the expected origin label and the team can point to those samples when classifying real errors.

  6. Rehearse one provider failure end to end

    Simulate a provider outage in the staging gateway by disabling or breaking one deployment in a fallback chain. Watch the gateway retry, enter cooldown and fail over, then check that the errors and logs show the provider origin, that the fallback route served traffic, and that the named owner received the page or ticket. Record the time each signal appeared and any gap between what logs showed and what the operator saw. Done when the rehearsal leaves a written record that the runbook matched observed behavior, with corrections made.

  7. Review the runbook after each change

    Set a review trigger in the change process so the owner map, fallback chains and cooldown values are rechecked whenever a model, provider account, routing rule or LiteLLM version changes. Store the sample payloads and the rehearsal record with the runbook so the next reviewer has a baseline. Done when a configuration change to routing cannot merge without the runbook review step being recorded.

Where a failed request leaves the gateway and who owns each hop

The request starts at a calling application, passes through the LiteLLM gateway where the virtual key, budget and router are checked, and then reaches a provider deployment. Errors that carry a provider exception name, such as AnthropicException or OpenAIException, originate at the provider hop, while errors without one originate in the gateway. Fallback deployments sit behind the router, so an error can also reflect every route being exhausted. Check the error text first, then the owner of the hop it names.

Request path from caller to provider, with trust boundary and owners marked.

Security and data considerations while triaging errors

Error triage pulls prompts, identifiers, keys and configuration changes into tickets and vendor conversations. The cards below cover what to restrict, what to keep out of tickets, how long to retain evidence, and how to record changes made during an incident.

Restrict who reads error payloads

Error payloads and request logs can contain prompt fragments, user identifiers, team or key names and model responses. Decide in advance which roles can read gateway logs and which can read provider exception text, since the two may sit in different tools. Check who can view the admin UI spend and log views, and whether your SSO and role setup limits that access. Confirm with your platform team which log sinks receive these payloads and who holds access to each.

Error diagnosis docs

Keep master keys out of tickets

Support tickets and chat threads are rarely access controlled to the level of a secret. Before attaching a request or config, strip the master key, virtual key values and provider credentials, and replace them with the key alias or a short identifier. Keep LITELLM_MASTER_KEY in a secret manager so that a copied log line never reveals it. Confirm which fields your logging configuration redacts by default in your version.

Production best practices

Apply retention to triage logs

Triage exports, copied payloads and log extracts tend to outlive the incident that created them. Set a retention period for each copy, covering the log store, the ticket attachments and any local files on an engineer's workstation. Ask your security team for the approved period before the first incident, and confirm whether your logging sink applies its own retention to the LiteLLM output. Delete working copies when the ticket closes.

Route vendor escalations through an approved path

When a gateway issue goes to LiteLLM support or a model provider, the evidence may include prompt text or user data. Agree in advance which fields may leave your environment, and redact or summarize the rest. For LiteLLM Enterprise, confirm the dedicated support channel and the data handling terms in your contract before sending payloads. Do not send personal data to a vendor unless a documented approval covers it.

LiteLLM Enterprise docs

Record routing and key changes

During an incident, engineers often change routing priority, disable a deployment, rotate a key or raise a budget to restore service. Each change alters what the next error payload means, so record who made it, when, the previous value and the reason. Use a change log that your team can reconstruct from, and confirm whether your admin audit logging captures these edits in your edition. Review the log in the post-incident review before closing the ticket.

Routing docs

Questions teams ask before triaging gateway errors

How much effort does a LiteLLM error triage runbook take to build?

The effort depends mainly on how many providers the gateway calls, how many fallback chains and routing groups it uses, and how many teams send traffic through it. A gateway with one provider and a single model group is a small exercise. A gateway with several providers, priority-ordered failover and separate team keys has more error paths to classify, more owners to name and more cases to test. Ask any partner to break the estimate into inventory, classification rules, owner mapping, dashboards or alerts, and a test pass against your own routes. Ask for the number of providers and fallback chains in the written scope, since those figures set the size of the work.

What does the work need from our team before it can start?

It needs three things: access to gateway logs and error payloads, a current route inventory, and named owners for each provider and internal team. Log access should cover the gateway itself and, where you use them, the observability and SIEM tools that store request logs. The route inventory lists each model name, the provider behind it, the fallback order and the keys allowed to call it. Named owners tell you who acts on a provider error versus a gateway error. Without these, triage rules can be written but cannot be checked against real traffic.

Can our own platform team build this triage process internally?

Yes, if the team already runs the gateway, reads its logs and has authority over provider accounts and routing. The work is mostly documentation, classification rules and alert wiring, which fits a platform or SRE team with time to spare. The harder parts are keeping the rules current as routes change and getting provider owners to agree on who responds. Teams without a dedicated owner for the gateway, or without access to provider consoles, usually find the ownership mapping takes longer than the technical work. Compare the internal effort with a written partner scope before deciding.

How long does setup usually take when access approvals are slow?

Setup time is usually driven by approvals rather than by the runbook itself. Access to production logs, provider consoles and routing configuration often passes through security, identity and vendor-management reviews, and each one adds calendar time. Ask your team to list every approval the work needs before the engagement is scoped, including log export, read access to each provider account and change approval for any routing edits. A written scope can then show which steps depend on those approvals. No duration is given here because it depends on your approval process, which only your organization can confirm.

Can a provider outage be fixed at the LiteLLM gateway?

The gateway can reduce the impact of a provider outage but cannot repair the provider. If the error names a provider exception such as AnthropicException or BedrockException, the failure came from that provider, and the fix sits with the provider or with your account and quota settings there. The gateway can help through retries, cooldowns and priority-ordered failover, provided a healthy fallback deployment exists and is allowed for that key. Confirm the fallback order and cooldown behavior against the routing documentation for your version, and test failover in a staging environment before relying on it.

What support options exist for LiteLLM in production?

There are two routes. LiteLLM Enterprise includes a dedicated support channel with the engineering team and optional 24/7 SLAs. Those SLAs document a 1 hour response for critical issues and 72 hours for security patches. The second route is an outside partner such as DeployOpen, which can plan the triage runbook, document it, and support the gateway on a retainer basis. Ask each option what it covers in writing, including whether it reads your logs, changes routing or only advises. DeployOpen does not provide vendor support for LiteLLM itself.

How DeployOpen scopes and supports LiteLLM triage

DeployOpen is a Chainscore Labs company that plans, implements, hardens and supports self-hosted open-source platforms inside the client's own infrastructure, including the LiteLLM gateway. For error triage work, the useful starting point is a written scope that names which error sources are in play: the LiteLLM proxy and its configuration, the database and Redis it depends on, the provider accounts and private model endpoints behind each route, and the calling applications. A scope that covers only the gateway will leave provider-side failures, such as an AnthropicException or BedrockException returned through a route, without an owner, so the agreed document should state which teams receive which kinds of error before any work begins.

Engagements are fixed-scope. Before work starts, DeployOpen and the client agree the scope, the deliverables and the timeline in writing. For triage, deliverables commonly include a classification of recent error payloads, a route-by-route map of who owns each failure type, a runbook for fallback exhaustion, and the evidence checklist support teams will use before escalating. Ask for these items to be listed explicitly in the statement of work, along with the environments covered, the access the work requires and the client staff who must be available for review. A quote follows from that written scope, so changes to the number of routes, providers or environments will change the quote.

Ongoing support, upgrades and continuous testing are available as retainers. A retainer suits teams whose routes, fallback chains or provider accounts change often, because the error ownership map goes stale as models are added or retired. When comparing options, confirm with any partner what is covered under the retainer, how requests are logged and prioritized, and whether support includes reviewing new error payloads after a LiteLLM upgrade. DeployOpen does not publish a price list, and it does not claim partner status or certifications with LiteLLM or any provider, so confirm any vendor-specific support terms directly with the vendor.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.