8 views
-/https://github.com/berriai/litellm/issues/29973
GitHub · issue

#29973 [Bug]: /ui/login makes unauthenticated admin API calls that are exported as error traces

  • State: open
  • Author: @jlrigau

## What happened

When opening the LiteLLM admin UI at `/ui/login` on v1.88.0, the frontend loads the Next.js admin app and immediately calls several protected admin endpoints before the user is authenticated.

Those calls return 401 `ProxyException` responses, which is expected from an auth perspective, but they are also exported through OpenTelemetry/Langfuse as error traces. This creates noisy observability data simply from opening the login page.

Using `/fallback/login` avoids those calls, but it is not a good replacement for the normal UI login because it does not preserve the already-authenticated UI experience and asks the user to log in again.

## Expected behavior

Opening `/ui/login` should not generate observable backend error traces before the user submits credentials.

Possible fixes could be:

- avoid calling protected admin endpoints until the user is authenticated - treat expected pre-auth UI bootstrap 401s as non-error/noise for tracing - have `/ui/login` use a lightweight login-only page before loading authenticated admin data

## Actual behavior

Opening `/ui/login` triggers multiple unauthenticated requests such as:

- `/team/list` - `/models` - `/organization/…

GitHub resolver

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

Refresh page
vote history (1 events)
#0 of 0 · 31d17h49m48s ago — entered · #import:https:::github.com:berriai:litellm post #3138
Model omitted braces; inferred difficulty from issue scope and surface area.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search