Thanks to visit codestin.com
Credit goes to github.com

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.

InfluxDBClientError when writing boolean data #235

Closed
@readmodifywrite

Description

@readmodifywrite

Error looks like this:

"InfluxDBClientError: 400: unable to parse 'sapphire.devices.225 enable_channel_hopping=Falsei 1440436537172820992': invalid boolean"

Note the False is encoded with 'i', as if it were an integer.

In line_protocol.py line 62, _escape_value checks if value is an integer and then appends the i. Python's boolean type is a subclass of int, so _escape_value will incorrectly append the i.

This is on Python 2.7.6.

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