Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBClient & Core version 4.11.0 and possible write issue #498

Open
nacestruc opened this issue Apr 3, 2023 · 0 comments
Open

DBClient & Core version 4.11.0 and possible write issue #498

nacestruc opened this issue Apr 3, 2023 · 0 comments

Comments

@nacestruc
Copy link

nacestruc commented Apr 3, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant