InfluxDB.Client.Net icon indicating copy to clipboard operation
InfluxDB.Client.Net copied to clipboard

I'm facing error when trying to send an InfluxDB float field.

Open viictoorantonio opened this issue 2 years ago • 1 comments

I'm facing this error when trying to send an InfluxDB float field.. "only invariant culture is supported in invariant mode of globalization"

In a quick google I found this link talking about the problem, occurring recently with .NET6 https://docs.microsoft.com/en-us/dotnet/core/compatibility/globalization/6.0/culture-creation-invariant-mode

Reviewing the code it's 3 point where it uses "en-US" to get CultureInfo and parse float/double data to string. If we use InvariantCulture to solve this problem. It's possible?

Version Lib: 0.25.0

viictoorantonio avatar May 26 '22 12:05 viictoorantonio

hi @viictoorantonio sorry, missed this in the feed. that "en-US" came because InfluxDB expects floating point in the line protocol to be a .. do you have a sample data that is giving you this problem? can you create a testcase for me recreate the issue?

mvadu avatar Jun 22 '22 03:06 mvadu