6 views
-/https://github.com/berriai/litellm/issues/34708
GitHub · issue

#34708 [Bug]: Hanging-request Slack alert always shows empty Key Alias / Team Alias (metadata read from wrong location at pre-call time)

  • State: open
  • Author: @yryzhan-vitech
  • 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?

When the `llm_requests_hanging` Slack alert fires, the **Key Alias** and **Team Alias** fields are always blank, regardless of which key/team made the request. This makes the alert unable to identify who is responsible for the hang.

**Expected:** the alert shows the key/team alias of the hanging request. **Actual:** `Key Alias` and `Team Alias` are always empty.

**Root cause (on `litellm_internal_staging`):**

`AlertingHangingRequestCheck.add_request_to_hanging_request_check` reads request metadata via `get_litellm_metadata_from_kwargs()`:

- `litellm/integrations/SlackAlerting/hanging_request_check.py:60`

```python request_metadata = get_litellm_metadata_from_kwargs(kwargs=request_data) ```

- `litellm/integrations/SlackAlerting/hanging_request_check.py:74-75`

```python key_alias=request_metadata.get("user_api_key_alias", ""), team_alias=request_metadata.get("user_api_key_team_alias", ""), ```

- `litellm/litellm_core_utils/core_helpers.py:169` — `get_litellm_metadata_from_kwargs` reads **only** `kwargs["litellm_params"]["met…

GitHub resolver

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

Refresh page
vote history (1 events)
#0 of 0 · 31d18h17m51s ago — entered · #import:https:::github.com:berriai:litellm post #2646
The right-hand task spans provider-specific endpoint routing, configuration propagation, compatibility behavior, and regression coverage, while the left is a localized metadata extraction fix with narrower testing scope. Therefore, the right issue is substantially harder.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search