Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

write seems to fail with Decimal value #482

Closed
@ghost

Description

Hi,

As reported by @chripede in #430 , using Decimal value with write triggers an exception:
e.g if the value is 2695.30

influxdb.exceptions.InfluxDBClientError: 400: {"error":"partial write: unable to parse 'totalgain value=Decimal('2695.30')': invalid boolean dropped=0"}

See the last message of @chripede in #430 for another example. As he said:

I think the problem might be that float() will return a float on a Decimal, but repr will actually return "Decimal('29.95')"

Let me know if you need more information.

Best Regards,
Carl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions