node-red-contrib-stackhero-influxdb-v2 icon indicating copy to clipboard operation
node-red-contrib-stackhero-influxdb-v2 copied to clipboard

unsupported input type for mean aggregate: string

Open kaciker opened this issue 5 years ago • 2 comments

I'm trying to insert string in Influxdb v2 (2.0.3) When I send a msg, like:


var text = msg.payload.data; var Appname = msg.payload.applicationName; var Devapp = msg.payload.device;

msg.payload = { bucket: 'Teststring', precision: 'ms', data: [ { measurement: 'string', tags: { aplication: Appname, device: Devapp }, fields: { gauge2 : "test" }, timestamp: Date.now() }, ] }; return msg;

I receive inside Influx the following msg: unsupported input type for mean aggregate: string I tried in field format with "gauge2":"test" but I hhave the same issue

2021-01-25_15h33_53

kaciker avatar Jan 25 '21 14:01 kaciker

Hi, have since the update the same behaviour. Please correct.

thomkal avatar Jan 27 '21 09:01 thomkal

Hello, This is not a issue with the input in to the DB. It is a problem of the data request. Try to aggregate with last or first and display it as Table.

Trip-eng avatar Mar 08 '21 08:03 Trip-eng