16 views
-/https://github.com/berriai/litellm/issues/20482
GitHub · issue

#20482 [Bug]: LiteLLM Proxy {+request log) shows ProxyException instead of unauthenticated when using config-defined models

  • State: open
  • Author: @FuxMak
  • Labels: bug, proxy, llm translation

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

Due to [another issue reported here](https://github.com/BerriAI/litellm/issues/17398) with too many encrypted fields in the database, we opted for an IaC approach of LiteLLM using models/credentials defined in the config.yaml file and other resources managed by API.

This setup works great, but we noticed two critical things:

- Unauthenticated requests don't report the usual "401 Unauthorized", but instead throw a ProxyExpection error without useful log information - The exception seen in the screenshot below is also going to STDOUT and Slack Exception alerts if configured -> Excessive noise in Alerting and Logging

<img width="1295" height="761" alt="Image" src="https://github.com/user-attachments/assets/8267e8a3-4749-4b28-b89f-f9e04e188aad" />

### Steps to Reproduce

Version: 1.81.0-stable

```yaml # config.yal general_settings: store_model_in_db: false store_prompts_in_spend_logs: true

# Example model model_list: - litellm_params: custom_llm_provider: openai litellm_credential_name: OpenAI mo…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d17h50m15s ago — entered · #import:https:::github.com:berriai:litellm post #3022
The left issue is harder because it likely requires tracing authentication failure classification through proxy exception handling, request logging, and alerting behavior across configuration-backed model paths. The right issue is comparatively localized to a request-transformation schema default and targeted compatibility tests.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search