Influxdb authentication fail using Ruby -
i trying connect influxdb using influxdb-ruby
gem.
with:
influx -username admin -password secret > show databases; name: databases --------------- name _internal metrics
works fine.
but if try ruby:
client = influxdb::client.new(host: "host", port: 8086, database: "metrics", user:"admin", password: "secret") client.list_databases influxdb::authenticationerror: {"error":"authorization failed"}
any tip here ?
thanks in advance
you must replace user
argument username
.
client = influxdb::client.new(host: "host", port: 8086, database: "metrics", username:"admin", password: "secret")
Comments
Post a Comment