Using influxdb-client-python against v1.8.10 how do I do the equivalent to `client.get_list_database()`?
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 25/100
Piste de recherche
Commencez par l’appel à BucketsApi.find_buckets() et le comportement d’InfluxDB 1.8.10 décrit dans la reproduction. Déterminez si le client expose un point d’entrée équivalent pour lister les bases de données ; le travail est considéré comme terminé lorsque les bases de données attendues peuvent être listées avec InfluxDB 1.8.10 sans le 404 signalé.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Specifications
- Client Version: 1.35.0
- InfluxDB Version: 1.8.10
- Platform: Linux
The subject sums up my whole question, really. Using influxdb-client-python v1.35.0 against InfluxDB v1.8.10 how do I do the equivalent to client.get_list_database() from the older influxdb-python v5.3.1?
The docs say Use this client library with InfluxDB 2.x and InfluxDB 1.8+ so I hoped there was an equivalent.
I tried BucketsApi.find_buckets() but that seems to only use the v2 API and therefore throws an exception following the 404 status.
Code sample to reproduce problem
from influxdb_client import InfluxDBClient as InfluxDBClient2, BucketsApi
with InfluxDBClient2(url='http://localhost:8086', token=':', org='-') as client:
bucket_client = BucketsApi(client)
buckets = bucket_client.find_buckets()
for bucket in buckets:
print(bucket)
Expected behavior
To get the databases listed.
Actual behavior
Traceback (most recent call last):
File "mdsh.py", line 5, in <module>
buckets = bucket_client.find_buckets()
File "/usr/local/lib/python3.7/site-packages/influxdb_client/client/bucket_api.py", line 119, in find_buckets
return self._buckets_service.get_buckets(**kwargs)
File "/usr/local/lib/python3.7/site-packages/influxdb_client/service/buckets_service.py", line 548, in get_buckets
(data) = self.get_buckets_with_http_info(**kwargs) # noqa: E501
File "/usr/local/lib/python3.7/site-packages/influxdb_client/service/buckets_service.py", line 590, in get_buckets_with_http_info
urlopen_kw=kwargs.get('urlopen_kw', None))
File "/usr/local/lib/python3.7/site-packages/influxdb_client/_sync/api_client.py", line 348, in call_api
_preload_content, _request_timeout, urlopen_kw)
File "/usr/local/lib/python3.7/site-packages/influxdb_client/_sync/api_client.py", line 177, in __call_api
_request_timeout=_request_timeout, **urlopen_kw)
File "/usr/local/lib/python3.7/site-packages/influxdb_client/_sync/api_client.py", line 370, in request
**urlopen_kw)
File "/usr/local/lib/python3.7/site-packages/influxdb_client/_sync/rest.py", line 273, in GET
**urlopen_kw)
File "/usr/local/lib/python3.7/site-packages/influxdb_client/_sync/rest.py", line 261, in request
raise ApiException(http_resp=r)
influxdb_client.rest.ApiException: (404)
Reason: Not Found
HTTP response headers: HTTPHeaderDict({'Content-Type': 'text/plain; charset=utf-8', 'X-Content-Type-Options': 'nosniff', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Version': '1.8.10', 'Date': 'Sun, 01 Jan 2023 16:04:59 GMT', 'Content-Length': '19'})
HTTP response body: 404 page not found
Additional info
No response
- Langage dominant
- Python
- Étoiles
- 793
- Forks
- 187
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de influxdata/influxdb-client-python
-
Pandas outputs warning when calling dataframe.append in flux_csv_parser._prepare_data_framePeut-être pris @dave-cz l’a pris il y a 412 jours. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
influxdata/influxdb-client-python#613 · 7 commentaires ·
-
ApiClient.__del__ triggers shutdown-time exception in influxdb-client 1.50.0Peut-être pris @karel-rehor l’a pris il y a 3 jours. Ouvertebug
Difficulté 3/5 1-2 jours Accessibilité débutants 65/100
influxdata/influxdb-client-python#719 · 1 personne assignée ·
-
Public symbols not properly exported with `py.typed` present — triggers Pylance/Pyright errorsOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
influxdata/influxdb-client-python#694 · 6 réactions ·
-
bug
Difficulté 3/5 1-2 jours Accessibilité débutants 30/100
influxdata/influxdb-client-python#693 · 2 commentaires · 1 réaction ·
-
Socks proxy supportOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
Toutes les issues de influxdata/influxdb-client-python
Issues similaires
-
`burr` fails to start when the Python path has a space in itPeut-être pris @enekoreto l’a pris aujourd’hui. Ouvertestatus/needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 5 jours
-
gemini 出现了新的域名需要加入Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
-
Difficulté 2/5 Une demi-journée Accessibilité débutants 72/100
debpalash/VoiceStudio#2903 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
dagster-io/community-integrations#367 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
aws-samples/sample-per-model-bedrock#243 ·
Les mainteneurs répondent en général sous 1 jour