mirror of https://github.com/grafana/loki
bug(volume): return 400 error for invalid volume request (#11313)
**What this PR does / why we need it**:
Making a request to the `/volume{,_range}` endpoints results in a 500 is
a LogQL expression is given instead of the expected label matchers. The
reason for this is that the error is not wrapped in such a way as to be
interpreted by `ClientHTTPStatusAndError` correctly.
5xx responses from the querier are automatically retried, so any invalid
request currently results in 5 retries which are unnecessary.
Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
pull/11107/head
parent
75cfe59596
commit
e523809216
Loading…
Reference in new issue