Skip to content

InfluxDB 1.8: V2 compatibility write API doesn't support unsigned integers #17781

@vlastahajek

Description

@vlastahajek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.xarea/compat-v1xv1.x compatibility related work in v2.x

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions