InfluxCommunity / influxdb-ruby

Ruby client for InfluxDB
MIT License
370 stars 133 forks source link

Deprecated use of 'DROP DATABASE foo' in a read only context, please use a POST request instead #234

Open cantino opened 5 years ago

cantino commented 5 years ago
INFLUX.create_database("foo").body
 => "{\"results\":[{\"statement_id\":0,\"messages\":[{\"level\":\"warning\",\"text\":\"deprecated use of 'CREATE DATABASE foo' in a read only context, please use a POST request instead\"}]}]}\n"

INFLUX.delete_database("foo").body
 => "{\"results\":[{\"statement_id\":0,\"messages\":[{\"level\":\"warning\",\"text\":\"deprecated use of 'DROP DATABASE foo' in a read only context, please use a POST request instead\"}]}]}\n"
miketwo commented 2 years ago

For reference, this is how it was fixed on the corresponding node library.