csv2influx icon indicating copy to clipboard operation
csv2influx copied to clipboard

Error: Connect URI is wrong

Open ridzafauzi opened this issue 7 years ago • 2 comments

Hi, I got this error when trying to import the csv file

root@foxy-01:/home/csv2influx# csv2influx --c csv2influx.conf.json test.csv Reading csv2influx.conf.json ok checking format ok lines count:8 Connecting to http://user:[email protected]:8086 Error: Connect URI is wrong, eg: http://user:pass@localhost:port,anotherhost:port,yetanother:port/mydatabase at new Client (/usr/lib/node_modules/csv2influx/node_modules/influxdb-nodejs/lib/client.js:73:13) at Promise (/usr/lib/node_modules/csv2influx/importer.js:94:22) at new Promise () at Importer._import (/usr/lib/node_modules/csv2influx/importer.js:92:12) at Importer.run (/usr/lib/node_modules/csv2influx/importer.js:88:17) at importer.countFileLines.then.linesCount (/usr/lib/node_modules/csv2influx/index.js:55:13) at at process._tickCallback (internal/process/next_tick.js:189:7)

ridzafauzi avatar Sep 25 '18 02:09 ridzafauzi

Hey, @budakgigibesi, you forgot to specify database to write It should be http://user:[email protected]:8086/database

rozetko avatar Sep 25 '18 07:09 rozetko

@budakgigibesi did it help?

rozetko avatar Sep 25 '18 14:09 rozetko