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

Unable to insert negatif floats #2919

Closed
BigEpsilon opened this issue Jun 11, 2015 · 1 comment
Closed

Unable to insert negatif floats #2919

BigEpsilon opened this issue Jun 11, 2015 · 1 comment
Assignees

Comments

@BigEpsilon
Copy link

Hi,

With the rc33, I'm getting a parse error whatever I try to insert a negatif float value into my db.

Here's a reproduction of the bug:

curl -XPOST 'http://localhost:8086/write' -d '
{
    "database": "mydb",
    "retentionPolicy": "default",
    "points": [
        {
            "measurement": "cpu_load_short",
            "tags": {
                "host": "server01",
                "region": "us-west"
            },
            "time": "2009-11-10T23:00:00Z",
            "fields": {
                "value": -0.64
            }
        }
    ]
}
'

and I get :

unable to parse number value '-0.64.0': strconv.ParseFloat: parsing "-0.64.0": invalid syntax
unable to parse number value '-0.64.0': strconv.ParseFloat: parsing "-0.64.0": invalid syntax
@pachenbach
Copy link

I have the same issue:

panic: unable to parse number value '-107.5.0': strconv.ParseFloat: parsing "-107.5.0": invalid syntax

InfluxDB crashes then.

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

3 participants