influxdata / influxdata/influxdb

Influxdb throw Error: read ECONNRESET\n at TCP.onStreamRead (node:internal/stream_base_commons:213:20) randomly

Open
#20,164 0 comments 0 reactions 0 assignees View on GitHub
1.x
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

Hi All,

I am using influxdb version 1.8.3 in docker. The instance is up and running fine never goes down.
Now when i am using nodejs InfluxDb client to connect with my host. It through randomly below error.
**Error: read ECONNRESET\n at TCP.onStreamRead (node:internal/stream_base_commons:213:20).**
The frequency of this error is like when i am connecting for first time it throw error and then try second time it fetch me data without issue and connecting and fetching data and other queries works fine.
But when i leave it for like 10 to 20 minutes idle then try to connect ,It throw this error again for first try and in second try works fine.
I have try with curl and http request same issue with every client even from grafana.
How can i solve this issue. ? Thanks in advance.

Contributor guide

Open the contributing guide

Research direction

No repository files or tests are named. First reproduce against InfluxDB 1.8.3 in Docker after 10–20 minutes idle using the Node.js client, curl, HTTP requests, or Grafana, then compare the first failed request with the successful retry; done means identifying a repository-relevant cause or documented configuration that prevents the ECONNRESET.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, nodejs
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.