influxdata / influxdata/influxdb-client-csharp

DBClient & Core version 4.11.0 and possible write issue

Open
#498 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
377
Forks
93
Avg merge
9m
Merged PRs (30d)
2

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the report with InfluxDB.Client 4.10.0 or 4.11.0 against Influx Cloud, using InfluxDBClientFactory.Create or the InfluxDBClient constructor and the shown GetWriteApi/WritePoint call. Compare the result with version 4.6.0; done means identifying why no point appears and confirming a write or a reported error with the newer versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.