influxdata / influxdb-r

R library for InfluxDB
MIT License
43 stars 22 forks source link

Update influxdb.R #2

Closed julianrcook closed 10 years ago

julianrcook commented 10 years ago

The call to GET currently returns 'Error in function (type, msg, asError = TRUE) : couldn't connect to host'. I traced this to the named arguments to GET. One of the lower level functions is looking for the field 'hostname', not host. After I renamed the arg in GET to hostname = host, the call to influx worked..I am using httr 0.3, based on the help page. I am not sure if this is a version specific issue in httr.

jvshahid commented 10 years ago

I just verified that in the docs which can be found here