xinjaylin
xinjaylin
```python write_client = influxdb_client.InfluxDBClient(url=url, token=token, org=org) bucket = '' write_api = write_client.write_api(write_options=SYNCHRONOUS) for val in range(5): point = ( Point('measurement1') .tag('tagname1', 'tagval1') .field('field1', val) ) write_api.write(bucket=bucket, org=org, record=point) time.sleep(1) ```
ApiException: (404) Reason: Not Found HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json; charset=utf-8', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Version': 'v2.7.6', 'X-Platform-Error-Code': 'not found', 'Date': 'Mon, 10 Jun 2024 05:42:47 GMT', 'Content-Length': '68'}) HTTP response body:...