Skip to content

Release 1.29.0 broken, AttributeError: 'InfluxDBClient' object has no attribute 'auth_header_value' #442

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mmatl opened this issue May 20, 2022 · 2 comments · Fixed by #443
Labels
bug Something isn't working state: confirmed
Milestone

Comments

@mmatl
Copy link
Contributor

mmatl commented May 20, 2022

Steps to reproduce:

Run the following python code:

from influxdb_client import InfluxDBClient

x = InfluxDBClient("localhost:8086")

Expected behavior:
Not a crash.

Actual behavior:
Crash:

Traceback (most recent call last):
  File "/Users/mmatl/ambi/tmp.py", line 3, in <module>
    x = InfluxDBClient("localhost:8086")
  File "/Users/mmatl/ambi/env/lib/python3.9/site-packages/influxdb_client/client/influxdb_client.py", line 62, in __init__
    header_value=self.auth_header_value, retries=self.retries)
AttributeError: 'InfluxDBClient' object has no attribute 'auth_header_value'
Exception ignored in: <function InfluxDBClient.__del__ at 0x10e0efb80>
Traceback (most recent call last):
  File "/Users/mmatl/ambi/env/lib/python3.9/site-packages/influxdb_client/client/influxdb_client.py", line 264, in __del__
    if self.api_client:
AttributeError: 'InfluxDBClient' object has no attribute 'api_client'

Specifications:

  • Client Version: 1.29.0
  • InfluxDB Version:
  • Platform: MacOS, Ubuntu, Windows (all tested)
@bednar
Copy link
Contributor

bednar commented May 21, 2022

Hi @mmatl,

thanks for using our client.

We will release fixed version ASAP. As a workaround you can use following code:

InfluxDBClient.auth_header_value = None
client = InfluxDBClient("http://localhost:8086")
del client.api_client.default_headers['Authorization']

Regards

@bednar
Copy link
Contributor

bednar commented May 21, 2022

Hi @mmatl,

I have prepared a fixed version within #443. If you would like to use this fixed version before regular release, please install client via:

pip install git+https://github.com/influxdata/influxdb-client-python.git@fix/fix_without_token

Regards

@bednar bednar added this to the 1.30.0 milestone May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working state: confirmed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants