Working back through the versions, it looks like this stopped working after version 2.3.0 of the cli
ben@bumblebee:~/tmp$ influxdb2-client-2.5.0-linux-amd64/influx task create -file task\(1\).flux
Error: 400 Bad Request: failed to decode request: time: invalid duration ""
ben@bumblebee:~/tmp$ influxdb2-client-2.4.0-linux-amd64/influx task create -file ~/Downloads/task\(1\).flux
Error: 400 Bad Request: failed to decode request: time: invalid duration ""
ben@bumblebee:~/tmp$ influxdb2-client-2.3.0-linux-amd64/influx task create -file task\(1\).flux
ID Name Organization ID Organization Status Every Cron
0a5ba41b17f40000 Migrate data from InfluxDB Cloud 8d58f686fe69c193 active 5m
The underlying issue seems to be the addition of this line in commit 1453e20f2bb264c08be61f151853629ebe686a70.
Commenting that line out and compiling resolves the issue, although that'll break support for the commandline param
For reference, the task used below is from this doc.
It's not currently possible to load the task into a Cloud2 account.
Running
results in
The task contains a valid definition
If
every
is defined on the command line, it worksTaking a packet capture shows that the CLI is not correctly populating
every
in it's API callWorking back through the versions, it looks like this stopped working after version 2.3.0 of the cli
The underlying issue seems to be the addition of this line in commit 1453e20f2bb264c08be61f151853629ebe686a70.
Commenting that line out and compiling resolves the issue, although that'll break support for the commandline param