Skip to content

Values that end in i are not being converted to string. #14

@Snipa22

Description

@Snipa22

Per: https://github.com/vicanso/influxdb-nodejs/blob/master/lib/influx.js#L28

It appears that strings that end in an i, are not being converted to strings. I'm not entirely sure why this is like this, except perhaps for debugging, as it causes errors as follows:
influxdb-nodejs writer data:{"measurement":"shares","tags":{"foundBlock":false,"shareType":"valid","paymentType":"pplns","poolID":2,"blockDiff":6664436299,"bitcoin":0,"worker_tag":"mini","payout_tag":""},"fields":{"round":1219169,"shares":1000,"worker":"mini","payout":""},"time":1483862223761,"precision":"ms"} +16s
influxdb-nodejs POST /write, data:"shares,foundBlock=false,shareType=valid,paymentType=pplns,poolID=2,blockDiff=6664436299,bitcoin=0,worker_tag=mini,payout_tag=round=1219169,shares=1000,worker=mini,payout="" 1483862223761", query:{"db":"","u":"","p":"","precision":"ms"} +1ms

As you can see, the worker field, is not being properly escaped, which is causing it to throw invalid boolean errors.

I'm not sure if this is a debug thing (I assume it is?), but I don't want to submit a patch without knowing what it's there for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions