influxdata / influxdata/influxdb
Python setup on InfluxDB UI – wrong variable used
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
__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: 407fa622e9) build_date: 2023-04-28T13:24:42Z
Contributor guide
Research direction
Open the InfluxDB UI Python setup and follow the reported steps through Initialize Client and Write Data. Check the variable names in the displayed examples, correct the reference to use the variable that was created, and repeat the setup to confirm it completes without the reported NameError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100