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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -