Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Backslashes need to be escaped in Point values #125

Open
zorac opened this issue Mar 8, 2019 · 1 comment
Open

Backslashes need to be escaped in Point values #125

zorac opened this issue Mar 8, 2019 · 1 comment

Comments

@zorac
Copy link
Contributor

zorac commented Mar 8, 2019

Backslashes need to be escaped in point values where they immediately precede a double quote, or where they're the last character of the value. Example errors:

value=a b

value=a\b

value=a"b
Warning: Uncaught InfluxDB\Exception: HTTP Code 400 {"error":"unable to parse 'test value="a\\"b"': unbalanced quotes"}
in /app/vendor/influxdb/influxdb-php/src/InfluxDB/Database.php:177
Stack trace:
#0 /app/vendor/influxdb/influxdb-php/src/InfluxDB/Database.php(142): InfluxDB\Database->writePayload(Array, 'n', NULL)

value=a b
Warning: Uncaught InfluxDB\Exception: HTTP Code 400 {"error":"unable to parse 'test value="a b\"': unbalanced quotes"}
in /app/vendor/influxdb/influxdb-php/src/InfluxDB/Database.php:177
Stack trace:
#0 /app/vendor/influxdb/influxdb-php/src/InfluxDB/Database.php(142): InfluxDB\Database->writePayload(Array, 'n', NULL)

@zorac
Copy link
Contributor Author

zorac commented Mar 8, 2019

PR #156 contains a fix for this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant