-
Notifications
You must be signed in to change notification settings - Fork 615
[BUG][UI]: Pagination per_page options 200/500 exceed API limit of 100 #3469
Copy link
Copy link
Labels
SHOULDP2: Important but not vital; high-value items that are not crucial for the immediate releaseP2: Important but not vital; high-value items that are not crucial for the immediate releaseapiREST API Related itemREST API Related itembugSomething isn't workingSomething isn't workingreadyValidated, ready-to-work-on itemsValidated, ready-to-work-on itemsuiUser InterfaceUser Interface
Milestone
Description
🐞 Bug Summary
When the pagination is changed from per_page to 200 or 500 on Teams and Users page, the response from the server is 422
🧩 Affected Component
Select the area of the project impacted:
-
mcpgateway- API -
mcpgateway- UI (admin panel) -
mcpgateway.wrapper- stdio wrapper - Federation or Transports
- CLI, Makefiles, or shell scripts
- Container setup (Docker/Podman/Compose)
- Other (explain below)
🔁 Steps to Reproduce
- Go to http://localhost:8080/admin
- Teams or Users page where there is at least 5000 users and teams
- Change per page to 200 or 500 and observe
- The response is 422 error with
{
"detail": [
{
"type": "less_than_equal",
"loc": [
"query",
"per_page"
],
"msg": "Input should be less than or equal to 100",
"input": "200",
"ctx": {
"le": 100
}
}
]
}
🤔 Expected Behavior
The response should be 200 OK with the data returned.
📓 Logs / Error Output
Paste any relevant stack traces or logs here.
🧠 Environment Info
You can retrieve most of this from the /version endpoint.
| Key | Value |
|---|---|
| Version or commit | e.g. v0.9.0 or main@a1b2c3d |
| Runtime | e.g. Python 3.11, Gunicorn |
| Platform / OS | e.g. Ubuntu 22.04, macOS |
| Container | e.g. Docker, Podman, none |
🧩 Additional Context (optional)
Add any configuration details, flags, or related issues.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
SHOULDP2: Important but not vital; high-value items that are not crucial for the immediate releaseP2: Important but not vital; high-value items that are not crucial for the immediate releaseapiREST API Related itemREST API Related itembugSomething isn't workingSomething isn't workingreadyValidated, ready-to-work-on itemsValidated, ready-to-work-on itemsuiUser InterfaceUser Interface