mblackstock / node-red-contrib-influxdb

Node-RED nodes to save and query data from an influxdb time series database
Other
64 stars 46 forks source link

TypeError on usage readme example #81

Closed darwin10 closed 3 years ago

darwin10 commented 3 years ago

using one of the readme examples for writing and influxdb 2, the node returns TypeError: this.writeBuffer.flush(...).finally is not a function"

ver 0.5.3, tried back to 0.5.0 but the error is still present.

influxdb 2.0.3

mblackstock commented 3 years ago

Thanks for the report I will check it out. Can you tell me the example you were trying, what version of Node you were using? This might save me a bit of time.

mblackstock commented 3 years ago

I can see this error when I run Node-RED with Node.js v 8.17.0, but not when I use 10.23.0 or 14.15.1. Can you make sure you're using Node 10.x or later? The Node-RED site recommends using Node 12.x LTS.

darwin10 commented 3 years ago

Thanks, that appears to be the issue, might I suggest a version check to error the node on less than 10.x. as Node-RED itself can run on earlier versions.

mblackstock commented 3 years ago

Yes, I will add that to the package. It looks like Node-RED supports 8.x but is no longer maintaining it, so probably a good idea to upgrade soon anyway.

On Sun, Dec 27, 2020 at 10:10 PM darwin10 notifications@github.com wrote:

Thanks, that appears to be the issue, might I suggest a version check to error the node on less than 10.x. as Node-RED itself can run on earlier versions.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mblackstock/node-red-contrib-influxdb/issues/81#issuecomment-751591546, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFMY6EL7HPXVSKKI4Q4LNDSXAOO5ANCNFSM4VKOC5WQ .

mblackstock commented 3 years ago

see #82