Too few parameters supplied when executing flux()
GoldenretriverYT opened this issue · comments
Specifications
- Client Version: 1.27.0
- InfluxDB Version: Version (9b61e91)
- Platform: nodejs app is running on Windows
Code sample to reproduce problem
let query = flux(`from(bucket:"${bucket}")
|> range(start:-${this.trigger_hours}h)
|> filter(fn: (r) => r["_measurement"]=="${this.serial}")
|> filter(fn: (r) => r["_field"] == "${this.param}")
|> filter(fn: (r) => r._value ${this.condition} ${this.value})
|> keep(columns:["_value"])
|> yield(name:"res-${this.id}")`);
All inserted fields are populated. Example:
- bucket -> my_bucket
- trigger_hours -> 3
- serial -> 12341234
- param -> temp
- condition -> ">"
- value -> 200
- id -> 123
Expected behavior
Should not throw "Too few parameters supplied!"
Actual behavior
Throws "too few parameters supplied"
Additional info
No response
I tried updating to 1.32.0 but it also happens in that version
Ah sorry my bad, I had parentheses there