-
Notifications
You must be signed in to change notification settings - Fork 18
Closed as not planned
Labels
wontfixThis will not be worked onThis will not be worked on
Milestone
Description
Specifications
- Client Version: v3
- InfluxDB Version: Cloud 3
This is from this community question:
https://community.influxdata.com/t/python-influxdb-client-3-query-error-tutorial-code/34129/8
Code sample to reproduce problem
import os, time
from influxdb_client_3 import InfluxDBClient3, Point
host = “https://eu-central-1-1.aws.cloud2.influxdata.com/”
client = InfluxDBClient3(host=host, token=my_token, org=my_organisation)
data = {
“point1”: {
“location”: “Klamath”,
“species”: “bees”,
“count”: 23,
},
“point2”: {
“location”: “Portland”,
“species”: “ants”,
“count”: 30,
},
“point3”: {
“location”: “Klamath”,
“species”: “bees”,
“count”: 28,
},
“point4”: {
“location”: “Portland”,
“species”: “ants”,
“count”: 32,
},
“point5”: {
“location”: “Klamath”,
“species”: “bees”,
“count”: 29,
},
“point6”: {
“location”: “Portland”,
“species”: “ants”,
“count”: 40,
},
}
for key in data:
point = (
Point(“census”)
.tag(“location”, data[key][“location”])
.field(data[key][“species”], data[key][“count”])
)
client.write(database=my_database, record=point)
time.sleep(1) # separate points by 1 second
print(“Complete. Return to the InfluxDB UI.”)
query = “”“SELECT *
FROM ‘census’
“””
table = client.query(query=query, database=my_database, language=‘sql’)
df = table.to_pandas().sort_values(by=“time”)
print(df)Expected behavior
Return results. Thank you!
Actual behavior
{
“name”: “FlightUnavailableError”,
“message”: “Flight returned unavailable error, with message: empty address list: . gRPC client debug context: UNKNOWN:empty address list: {grpc_status:14, created_time:"2024-05-05T13:09:44.314680034+00:00"}. Client context: IOError: Server never sent a data message. Detail: Internal”,
“stack”: "---------------------------------------------------------------------------
FlightUnavailableError Traceback (most recent call last)
Cell In[3], line 6
Additional info
No response
Metadata
Metadata
Assignees
Labels
wontfixThis will not be worked onThis will not be worked on