Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore (Loki datasource): empty log query request on page load resulting in error #24357

Closed
jstaffans opened this issue May 6, 2020 · 1 comment

Comments

@jstaffans
Copy link

What happened:

When browsing to the Explore section with a Loki datasource pre-selected but an empty query field, Grafana performs a log query without any query parameters. Loki always returns a HTTP 400.

What you expected to happen:

No log query requests should be sent until something has been entered into the query field.

How to reproduce it (as minimally and precisely as possible):

  • Go to the Explore section
  • Open browser dev tools
  • Select a Loki data source
  • Observe a request to /loki/api/v1/query_range without query params, resulting in a HTTP 400 error

Environment:

  • Grafana version: 6.7.3
  • Data source type & version: Loki 1.4.0
@davkal
Copy link
Contributor

davkal commented May 10, 2020

I can't reproduce this in master, so it might be fixed already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants