Wrong error message when executing a SELECT query. #889
Description
Hi everyone,
I'm trying to run a simple SELECT query from my database but it fails with following error message:
influxdb.exceptions.InfluxDBClientError: 403: {"error":"error authorizing query: my_user not authorized to execute statement 'SELECT * FROM \"measurements\"', requires READ on True"}
I know that my user have the required permissions because when connecting to the DB with a CLI I can execute the query. On top of that I checked the permissions with SHOW GRANTS and I could see that all requirements are satisfied (the user actualy does have all privileges).
I saw some simillar issues already (for instance in this issue) however this does not fit my case since I'm quoting the query.
My code:
results = influx_db_client.query('SELECT * FROM "measurements"')
What looks weird to me is that in the error message the qutoes around table are escaped.
- InfluxDB version: 1.8.0
- InfluxDB-python version: 5.3.1
- Python version: 3.6.8
- Operating system version: CentOS 7