influxdb-client-csharp icon indicating copy to clipboard operation
influxdb-client-csharp copied to clipboard

DBClient & Core version 4.11.0 and possible write issue

Open nacestruc opened this issue 2 years ago • 0 comments
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);
  1. Install InfluxDB.Client (4.10.0 or 4.11.0)
  2. Run the code above
  3. 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

nacestruc avatar Apr 03 '23 08:04 nacestruc