read_server stats: bare call 500s instead of validating required from/to #14

Closed
opened 2026-09-19 08:21:31 +01:00 by gronod · 0 comments
Owner

Summary

read_server stats returns UPSTREAM_REJECTED (HTTP 500) when called without from/to; with a valid RFC3339 range it succeeds. The schema does not mark these fields required, so a bare call produces an upstream 500 instead of a client-side validation error or sensible default window.

Environment

Reproduction

read_server {"action":"stats"}                                                            // 500
read_server {"action":"stats","from":"2026-08-01T00:00:00Z","to":"2026-09-19T00:00:00Z"} // OK

Expected

Either INVALID_ARGUMENT explaining from/to are required, or a default range applied.

Actual

upstream error (HTTP 500) — upstream rejects the unbounded query and the 500 leaks through.

Correlation IDs

6584244b94f7b64727930dd3 (bare), 76959d6baff5352ddfbdb602 (with range)

## Summary `read_server` `stats` returns `UPSTREAM_REJECTED (HTTP 500)` when called without `from`/`to`; with a valid RFC3339 range it succeeds. The schema does not mark these fields required, so a bare call produces an upstream 500 instead of a client-side validation error or sensible default window. ## Environment - Binary: deployed darwin-amd64 build from `develop` @ `d047d76` - Ombi: 4.53.10 (https://ombi.i3omb.com), JWT auth ## Reproduction ```json read_server {"action":"stats"} // 500 read_server {"action":"stats","from":"2026-08-01T00:00:00Z","to":"2026-09-19T00:00:00Z"} // OK ``` ## Expected Either `INVALID_ARGUMENT` explaining from/to are required, or a default range applied. ## Actual `upstream error (HTTP 500)` — upstream rejects the unbounded query and the 500 leaks through. ## Correlation IDs `6584244b94f7b64727930dd3` (bare), `76959d6baff5352ddfbdb602` (with range)
gronod added this to the M7 — Admin/server wire contracts milestone 2026-09-19 08:58:05 +01:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gronod/ombi-mcp#14