You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I spent a bit of time wondering why influxdb does not contain my data or why there is no error raised by influxdb-client-python so please consider this bug report.
Steps to reproduce:
import datetime
from influxdb_client import InfluxDBClient, Point, WritePrecision
from influxdb_client.client.write_api import SYNCHRONOUS
dT = datetime.datetime.utcnow()
org = "testOrg"
url = "http://localhost:8086"
token = '-'
bucket = "testBucket"
p = (
Point("testM")
.time(dT, write_precision=WritePrecision.S)
.tag("testT", "abc")
.field("testF", 1)
)
client = InfluxDBClient(url=url, token=token, org=org)
write_api = client.write_api(write_options=SYNCHRONOUS)
# fails silently, no error raised even if the database does not exist
record = (p, )
write_api.write(bucket, org, record)
# works
#record = [p, ]
#write_api.write(bucket, org, record)
Expected behavior:
Option A:
a point is inserted into the database
Tuples and other iterables are accepted instead of Lists to be more pythonic
Option B:
only Lists are accepted
a ValueError is raised for Tuples
Actual behavior:
Nothing happens
Specifications:
Client Version: influxdb-client 1.10.0
InfluxDB Version: influxdb 1.8.2-1
Platform: Linux, Arch Linux
The text was updated successfully, but these errors were encountered:
I spent a bit of time wondering why influxdb does not contain my data or why there is no error raised by influxdb-client-python so please consider this bug report.
Steps to reproduce:
Expected behavior:
Option A:
Option B:
Actual behavior:
Nothing happens
Specifications:
The text was updated successfully, but these errors were encountered: