influxdb-python icon indicating copy to clipboard operation
influxdb-python copied to clipboard

Cannot authorize client by Token

Open nireasybizy opened this issue 4 years ago • 1 comments

InfluxDB version: influxDB Cloud InfluxDB-python version: 5.3.0 Using python3

Using example : https://influxdb-python.readthedocs.io/en/latest/examples.html?highlight=token#tutorials-authorization-by-token In order to authenticate by api token. I'm receiving TypeError: init() got an unexpected keyword argument 'headers' While I can see that there is headers in client init class, possible you haven't deployed it yet? Please review

nireasybizy avatar Nov 03 '20 13:11 nireasybizy

It should be headers={'Authorization': 'Token <token value base64 decoded>'}

ondrej-ivanko avatar Mar 10 '21 15:03 ondrej-ivanko