influxdata / influxdata/kapacitor
Error : "failed to decode JSON: unexpected EOF" while executing tick script
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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