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

Python setup on InfluxDB UI – wrong variable used #24338

Open
mgorfer opened this issue Aug 7, 2023 · 1 comment
Open

Python setup on InfluxDB UI – wrong variable used #24338

mgorfer opened this issue Aug 7, 2023 · 1 comment

Comments

@mgorfer
Copy link

mgorfer commented Aug 7, 2023

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

  1. On the InfluxDB UI, set up python as source.
  2. Follow the steps up to Initialize Client and create write_client = influxdb_client.InfluxDBClient(url=url, token=token, org=org)
  3. On the next page, Write Data, use write_api = client.write_api(write_options=SYNCHRONOUS)
  4. As client does not exist (only write_client exists), get a NameError: name 'client' is not defined

Expected behavior:
The python setup works without problems.

Actual behavior:
The python setup does not work, as a wrong variable is used.

Environment info:

  • System info: Linux 6.2.0-1009-raspi aarch64
  • InfluxDB version: InfluxDB v2.7.1 (git: 407fa62) build_date: 2023-04-28T13:24:42Z
@BWStearns
Copy link

I put in a fix for the UI repo that should address this. The client creation step was the only one to use write_client so renaming it to client should be good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants