Getting Started: InfluxDB 3 Python Client Library

preview_player
Показать описание
The v3 Python client library provides a useful and programmatic way to write and query data in InfluxDB 3. Here we demonstrate how to get started using the newest Python client so you can do more with your data.
Рекомендации по теме
Комментарии
Автор

Can you use influxdb3-python with older version of InfluxDB?

GereHadush
Автор

I am getting the following error when I try to read the data from indluxdb using the influxdb_client_3 library.

FlightUnavailableError: Flight returned unavailable error, with message: failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8086: Ssl handshake failed: SSL_ERROR_SSL: error:0A00010B:SSL routines::wrong version number. gRPC client debug context: UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8086: Ssl handshake failed: SSL_ERROR_SSL: error:0A00010B:SSL routines::wrong version number {created_time:"2023-12-08T15:52:16.849447103+00:00", grpc_status:14}. Client context: IOError: Server never sent a data message. Detail: Internal

The code i am running:

fh = open(certifi.where(), "r")
cert = fh.read()
fh.close()

client = InfluxDBClient3(
token=my_token,
org=my_org,
database="pokemon-codex", enable_gzip=True, write_client_options=wco,

query = '''SHOW COLUMNS FROM caught'''
table = client.query(query=query, language='sql', mode='pandas')

System inflormatin:

InfluxDB v2.7.4
OS - Windows 11

danishkhajuria
visit shbcf.ru