hi all
i’m just starting work with influxDB
i use influxClient from github https://github.com/influxdata/influxdb/tree/master/client on my project
After writing code to initialize client and create database
when i start command docker-compose build
with params:
influxdb:
image: influxdb
container_name: test_influxdb
environment:
- INFLUXDB_HTTP_AUTH_ENABLED=true
- INFLUXDB_ADMIN_HTTP_ENABLED=true
- INFLUXDB_ADMIN_USER=test
- INFLUXDB_ADMIN_PASSWORD=test
volumes:
- 'influxdb:/var/lib/influxdb'
My app run but it can’t conect to influxDB
in docker logs show’s me something like this
"GET /ping?wait_for_leader=10s HTTP/1.1" 204 0 "-" "InfluxDBClient"
"POST /query?db=¶ms=%7B%22u%22%3A%22test%3Atest%22%7D&q=CREATE+DATABASE+test HTTP/1.1" 401 33 "-" "InfluxDBClient"
and I’ll try send query from client without params
POST /query?db=¶ms=null&q=CREATE+DATABASE+test HTTP/1.1" 401 33 "-" "InfluxDBClient"
i’m not sure what’s wrong
because go-client with parameters and operation “Create database” which i used exactly from description
why client with current admin login/password can’t create DB and can’t authorized?
https://github.com/influxdata/influxdb/tree/master/client
Thanks!