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

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

Open
viictoorantonio opened this issue May 26, 2022 · 1 comment
Open

Comments

@viictoorantonio
Copy link

viictoorantonio commented May 26, 2022

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

@mvadu
Copy link
Contributor

mvadu commented Jun 22, 2022

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?

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

2 participants