I’ve got some issues using the influx CLI within the Windows Powershell. I successfully set my credentials and I’m able to connect to the database. Manual insertation has also worked fine and I can use “.\influx bucket list” to make sure that the connection is established and buckets are available.
However, Flux-queries of the form: .\influx.exe query ‘from(bucket:“ExBucket”) |> range(start:-1y)’
always abort with the following error message: Error: failed to execute query: 400 Bad Request: error @1:13-1:22: undefined identifier ExBucket
I supposed problems with the quotation marks and tried different formats (like ´" or “” to escape the quotation mark within the string), unfortunately without success.
Thanks, Franky. I believe I followed the instructions on that page. Putting the query into a file works as described. Typing into the powershell does not. Might be a specific Windows issue.
Thanks - unfortunately I find no way to escape the double quotes. " does not work with the Windows PowerShell, since the backslash indicates folders such as the slash in Unix. MS suggests to escape double quotes with “” or `". Both versions won’t work either. Seems to be a very tough one. Probably only few people try with Windows.