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
Actual behavior:
Console threw the following error:
raise ValueError("Invalid value for org_id, must not be None") # noqa: E501
ValueError: Invalid value for org_id, must not be None
Specifications:
Client Version: 1.27
InfluxDB Version: 2.1.1-alpine
Platform: Ubuntu 20.04.3 LTS
The text was updated successfully, but these errors were encountered:
AbhigyaShridhar
changed the title
The create_bucket method from bucket_management.py example doesn't work as documented
The create_bucket method from buckets_management.py example doesn't work as documented
Apr 5, 2022
The error is cause by missing organization with name 'my-org' in your InfluxDB database. The error message is not clear... so I will prepare PR to clarify problem.
Steps to reproduce:
Steps followed:
from influxdb_client import InfluxDBClient, BucketRetentionRules
url = "http://localhost:8086" token = "my-token" org = "my-org"
client = InfluxDBClient(url=url,token=token)
retention_rules = BucketRetentionRules(type="expire",every_seconds=3600)
#create the bucket
created_bucket = client.buckets_api().create_bucket(bucket_name="bucket-by-python",retention_rules=retention_rules, org=org)
Link to the example followed: https://github.com/influxdata/influxdb-client-python/blob/master/examples/buckets_management.py
Expected behavior:
A new bucket is created
Actual behavior:
Console threw the following error:
Specifications:
The text was updated successfully, but these errors were encountered: