Skip to content

[Bugfix] Return 400 instead of 500 when query_range or query_instant requests have unparseable start/end parameters#6694

Merged
ruslan-mikhailov merged 3 commits intografana:mainfrom
ruslan-mikhailov:bugfix/query-range-invalid-bounds-400
Mar 16, 2026
Merged

[Bugfix] Return 400 instead of 500 when query_range or query_instant requests have unparseable start/end parameters#6694
ruslan-mikhailov merged 3 commits intografana:mainfrom
ruslan-mikhailov:bugfix/query-range-invalid-bounds-400

Conversation

@ruslan-mikhailov
Copy link
Copy Markdown
Contributor

@ruslan-mikhailov ruslan-mikhailov commented Mar 16, 2026

What this PR does: it fixes a bug when query range receives an invalid start/end (e.g. a string "abc") and returns status code 500 with error end must be greater than start

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@ruslan-mikhailov ruslan-mikhailov force-pushed the bugfix/query-range-invalid-bounds-400 branch from 0bb4900 to 5f02641 Compare March 16, 2026 11:27
@ruslan-mikhailov ruslan-mikhailov changed the title Bugfix/query range invalid bounds 400 [Bugfix] Return 400 instead of 500 when query_range or query_instant requests have unparseable start/end parameters Mar 16, 2026
@ruslan-mikhailov ruslan-mikhailov enabled auto-merge (squash) March 16, 2026 11:38
@ruslan-mikhailov ruslan-mikhailov merged commit 80ed0f9 into grafana:main Mar 16, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants