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
In pool/ping() is included 'path' from constructor config attribute together with '/ping'
Fix: https://node-influx.github.io/file/src/pool.js.html - line 188 -> path: `${url.path}${path}`.replace(/\\/+/, '/')
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Btw, providing Infinity as param will fail with: RangeError [ERR_OUT_OF_RANGE]: The value of "timeout" is out of range. It must be a non-negative finite number. Received Infinity
Expected Behavior
In pool/ping() is included 'path' from constructor config attribute together with '/ping'
Fix: https://node-influx.github.io/file/src/pool.js.html - line 188 ->
path: `${url.path}${path}`.replace(/\\/+/, '/')
Actual Behavior
The path parameter from config settings is missing in pool/ping() method
https://node-influx.github.io/file/src/pool.js.html - line 185, 188 resp.
Steps/Code to Reproduce the Problem
client = new InfluxDB({path: '/influx'});
client.ping(Infinity); // -> online: false, because not [server]/influx/ping but [server]/ping
Specifications
The text was updated successfully, but these errors were encountered: