influxdata / influx-cli

CLI for managing resources in InfluxDB v2
MIT License
61 stars 23 forks source link

Influx Query: Inconsistent org requirement or missing error message #470

Open Nick135 opened 1 year ago

Nick135 commented 1 year ago

Current behavior:

I have a influxd db with two bucket. Both bucket have similar data. One for continius data and one for tests.

When I query the test bucket I get the result. When I query the normal bucket I get no result for complex queries. When I only query range without any filter or use of any importet functions I get an error. "Error: must specify org ID or org name"

If I specify the org, both buckets work!

Desired behavior:

To Reproduce

.\influx query -r -t mytoken
from(bucket: "MyBucket_Debug") |> range(start: -10m)

.\influx query -r -t mytoken
from(bucket: "MyBucket") |> range(start: -10m)
Error: must specify org ID or org name

Version

InfluxDB v2.6 on Windows 10