litellm - 💡(How to fix) Fix Agents page can hit 422 from /key/list page size limit [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

The Agents dashboard can fail while fetching key metadata because the UI calls /key/list with a page size larger than the backend accepts.

Root Cause

The Agents dashboard can fail while fetching key metadata because the UI calls /key/list with a page size larger than the backend accepts.

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Summary

The Agents dashboard can fail while fetching key metadata because the UI calls /key/list with a page size larger than the backend accepts.

Symptom

A downstream deployment observed the Agents page request failing with 422 Unprocessable Content for:

GET /key/list?page=1&size=500&return_full_object=true&include_team_keys=true&include_created_by_keys=true

The backend route validates size with a maximum of 100, so size=500 is rejected before the key-list response can be returned.

Fix PR

PR: https://github.com/BerriAI/litellm/pull/28578

The PR:

  • changes the dashboard key lookup page size to 100
  • paginates /key/list until all visible agent keys are found or all pages are exhausted
  • adds regression coverage for the page size and pagination behavior
  • keeps dependencies and lockfiles unchanged

Current PR status at the time of filing:

  • GitHub Actions pass
  • Veria AI - PR Review passes
  • PR is mergeable
  • local npm audit signatures passed

cc @krrish-berri-2 because recent Agents dashboard work points to that area of ownership.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

litellm - 💡(How to fix) Fix Agents page can hit 422 from /key/list page size limit [1 pull requests]