-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Open
Labels
Description
The line protocol in InfluxDB 2 adds support for unsigned integers (suffix 'u'). V2 compatibility write API in InfluxDB 1.8 doesn't handle this.
Steps to reproduce:
curl -v -XPOST "localhost:8086/api/v2/write?bucket=test" --data-raw "test f=3u"
Expected behavior:
No error
Actual behavior:
< HTTP/1.1 400 Bad Request
< Content-Type: application/json
< Request-Id: a4c703d5-808b-11ea-8007-d66d6d2aa003
< X-Influxdb-Build: OSS
< X-Influxdb-Error: unable to parse 'test f=3u': invalid number
< X-Influxdb-Version: 1.8.0
< X-Request-Id: a4c703d5-808b-11ea-8007-d66d6d2aa003
< Date: Fri, 17 Apr 2020 09:13:04 GMT
< Content-Length: 56
<
{"error":"unable to parse 'test f=3u': invalid number"}
* Connection #0 to host localhost left intact
Environment info:
- System info: Windows 10 Professional
- InfluxDB version: InfluxDB v1.8.0 (git: 1.8 781490d)
- Other relevant environment details: Container runtime, disk info, etc