Skip to content
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

Query "buckets()" returns empty list when debug is enabled #480

Closed
meeusen opened this issue Aug 4, 2022 · 2 comments · Fixed by #483
Closed

Query "buckets()" returns empty list when debug is enabled #480

meeusen opened this issue Aug 4, 2022 · 2 comments · Fixed by #483
Labels
bug Something isn't working
Milestone

Comments

@meeusen
Copy link

meeusen commented Aug 4, 2022

Steps to reproduce:

with InfluxDBClient(url=DB_URL, token=DB_TOKEN, org=DB_ORG, timeout=60000, debug=True) as client:
    query_api = client.query_api()
    tables = query_api.query("buckets()")
    assert len(tables) == 1, "This should return 1 table."

Expected behavior:
With v1.30.0, I get a list with 1 FluxTable:
[<FluxTable: 7 columns, 8 records>]

Actual behavior:
With v1.31.0, I always get an empty list. When using debug=False for InfluxDBClient, then I do get the list with 1 FluxTable.

Specifications:

  • Client Version: 1.31.0
  • InfluxDB Version: 2.1.1
  • Platform: Linux (Fedora 36)
@bednar
Copy link
Contributor

bednar commented Aug 4, 2022

Hi @meeusen,

thanks for using our client.

The issue is caused by #462:

I will take a look and prepare fixed version ASAP.

Regards

@bednar bednar added the bug Something isn't working label Aug 4, 2022
@bednar
Copy link
Contributor

bednar commented Aug 4, 2022

Hi @meeusen,

I have prepared a fixed version within #483. 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@exhausted_response

Regards

@bednar bednar added this to the 1.32.0 milestone Aug 8, 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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants