influxdata / influxdata/kapacitor

Error : "failed to decode JSON: unexpected EOF" while executing tick script

Open
#2,187 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

Hi,

The tick script uses batch query.

The script fails when I set period value to 90d, It works when I change period to 6h/7d.(This is a prod kapacitor instance, we don't have access to it. We deploy new rules using terraform.)
The same script works on another kapacitor instance even with period 90d.

I can see only following line related to this script in log file
`lvl=error msg="error executing query" service=kapacitor task_master=main task=rimporter-telemetry-receive-outage node=query1 err="failed to decode JSON: unexpected EOF"`

Can you please help me with further granular debugging.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start with the query1 batch query in the tick script and compare the 90d case with 6h/7d, then trace the query error reported as “failed to decode JSON: unexpected EOF”; done means identifying the cause and documenting the granular diagnostic or fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.