influxdb-client-csharp
influxdb-client-csharp copied to clipboard
DBClient & Core version 4.11.0 and possible write issue
trafficstars
Today i've come accross with the issue writing points to Influx Cloud using 4.10.0 & 4.11.0 (InfluxDB.Client & InfluxDB.Client.Core). We were using 4.6.0 before the upgrade - everything is working fine with 4.6.0.
var influxDBClient = InfluxDBClientFactory.Create("url", "token");
using (var writeApi = influxDBClient.GetWriteApi())
{
var point = PointData.Measurement("temperature")
.Tag("location", "west")
.Field("value", 1.0)
.Timestamp(DateTime.UtcNow.AddSeconds(-10), WritePrecision.Ns);
writeApi.WritePoint(point, "bucket_name", "org_id");
}
influxDBClient.Dispose();
Steps to reproduce: I've tried with 4.11.0 and also changed the InfluxDBClientFactory.Create to the new method
using var client = new InfluxDBClient("http://localhost:8086", Token);
- Install InfluxDB.Client (4.10.0 or 4.11.0)
- Run the code above
- We are using Influx Cloud, haven't tested the behaviour on OSS version
Expected behavior: Points should be written to the bucket. -- Data should be present in InfluxDb bucket
Actual behavior: No points written to Influx. No error / exception throw in the code.
Specifications:
- Client Version: 4.10.0 or 4.11.0
- InfluxDB Version: Influx Cloud