Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support for Requiring Authentication for Ping #68

Open
HalfEatenPie opened this issue Feb 13, 2020 · 1 comment
Open

Support for Requiring Authentication for Ping #68

HalfEatenPie opened this issue Feb 13, 2020 · 1 comment

Comments

@HalfEatenPie
Copy link

In cases when InfluxDB OSS server configuration requires authentication for ping, influx_connection fails.

Source: https://docs.influxdata.com/influxdb/v1.7/administration/authentication_and_authorization/

[http]
  enabled = true
  auth-enabled = true 
  ping-auth-enabled = true

In R:

> con <- influx_connection(scheme = 'http', host = '<srv>', port = '8086', user = '<user>', pass = '<pass>')
Error: unable to parse authentication credentials

I got around this by modifying influxdb_connection to:

  response <- httr::GET(
    url = "",
    scheme = influxdb_srv$scheme,
    hostname = influxdb_srv$host,
    port = influxdb_srv$port,
    path = paste0(influxdb_srv$path, "ping"),
    config = influxdb_srv$config,
    httr::authenticate(
      influxdb_srv$user, 
      influxdb_srv$pass)
  )
@wollud1969
Copy link

This issue stops me from using influxdbr indeed. A fix would be appreciated.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants