hi ,I have a task which its executing is false and there have some error like "Error: failed to parse InfluxQL query: found spider, expected identifier at line 2, char 66"
then I get the task using http api ,the reuslts like
{
link: {
rel: "self",
href: "/kapacitor/v1/tasks/test"
},
id: "test",
template-id: "",
type: "batch",
dbrps: [
{
db: "spider",
rp: "autogen"
}
],
script: "batch |query(''' SELECT sum(sucscess) AS success, sum(failed) AS failed FROM spider.autogen.sdk WHERE 'evesnt' = 'uplsoad' ''') .period(1h) .groupBy(time(1h), 'source') .cron('0 0 * * * * *') |mongoDBOut() .url('mongodb://user:[email protected]:1120/spider') .database('spider') .collection('sdk_upload_status') .strict(TRUE) ",
vars: { },
dot: "digraph test { query1 -> mongodb_out2; }",
status: "enabled",
executing: false,
error: "failed to parse InfluxQL query: found spider, expected identifier at line 2, char 66",
stats: {
task-stats: null,
node-stats: null
},
created: "2018-03-01T15:38:50.746069605+08:00",
modified: "2018-03-02T15:53:58.337947287+08:00",
last-enabled: "2018-03-02T15:49:38.493134822+08:00"
}
But when i use node-kapacitor ,I get results like
message: 'Error from Kapacitor: failed to parse InfluxQL query: found spider, expected identifier at line 2, char 66' }
In fact ,the Task exists with some executing error, but the node-kapacitor return error