You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When querying an influxDB that seemingly doesn't respond with a Content-Length header, I should still get the complete response.
Actual Behavior
With NodeJS 12, the socket closes too soon and the data is incomplete
With NodeJS 14, the socket hangs forever
Steps/Code to Reproduce the Problem
I'm running a standard query:
constInflux=require('influx');constinflux=newInflux.InfluxDB({host: 'localhost',port: 8086,username: 'my_user',password: 'my_pass',});try{constresults=awaitinflux.query(`SELECT mean("cpu") AS "CPU" FROM "serverstat" WHERE time >= now() - 1d AND "serverid" = '${server_id}' GROUP BY time(1m), "serverid" fill(0)`,{database: 'serverdb',});console.log(results);}catch(e){console.error('Error fetching server compute',e);returnres.status(500).send(e.message);}
error usually comes in the form of a JSON parse error as the body is not complete.
Specifications
Version: 5.6.3
Platform: Mac
The text was updated successfully, but these errors were encountered:
Expected Behavior
When querying an influxDB that seemingly doesn't respond with a Content-Length header, I should still get the complete response.
Actual Behavior
With NodeJS 12, the socket closes too soon and the data is incomplete
With NodeJS 14, the socket hangs forever
Steps/Code to Reproduce the Problem
I'm running a standard query:
error usually comes in the form of a JSON parse error as the body is not complete.
Specifications
The text was updated successfully, but these errors were encountered: