首页 文章

InfluxDB线路协议坏时间戳

提问于
浏览
0

我正试图发布这个 data

my_tests,SNR = 533033200650344358002D00,TNR = test HelloWorld = 123 1495179651177999872 my_tests,SNR = 533033200650344358002D00,TNR = test HelloWorld = 444 1495179651203000064

POST Url 看起来像那样

http://influx.local:8086 / write?db = testdb&u = myuser&p = myasswd

Raw Response:

HTTP / 1.1 400错误请求内容类型:application / json Request-Id:4a1802d2-3ebd-11e7-8030-000000000000 X-Influxdb-Version:1 . 1 . 4日期:2017年5月22日星期一07:07:17 GMT内容-Length:147 {“error”:“部分写入:\ n不能解析'my_tests,SNR = 533033200650344358002D00,TNR =测试HelloWorld = 123 1495179651177999872 \ r':坏时间戳”}

时间戳看起来对我有效 .
If I only POST one line (not two as in the example above) it works quite fine!
我也想知道"\r"在时间戳之后的错误日志结尾处做了什么 . 因为我在写"\n" .

有趣的是,直到最近我才写入InfluxDB没有任何问题 . 不涉及版本升级 .

我正在运行InfluxDB 1.x(不确定究竟是哪个版本)

To complete the confusion... if I entirely ommit the timestamp (for testing purposes) it still doesn't work:

{“error”:“部分写入:\ n不能解析'my_tests,SNR = 533033200650344358002D00,TNR =测试HelloWorld = 123 \ r':无效数字”}

UPDATE: For testing purposes I installed InfluxDb 1.2.7 (Windows Standalone)
有效负载与以前相同

my_tests,SNR = 533033200650344358002D00,TNR = test HelloWorld = 123 1439856000 my_tests,SNR = 533033200650344358002D00,TNR = test HelloWorld = 444 1439856001

Influx报告回复:

HTTP / 1.1 400错误请求内容类型:application / json Request-Id:eca5283a-3ec4-11e7-8029-000000000000 X-Influxdb-Version:1 . 2 . 4日期:2017年5月22日星期一08:01:56 GMT内容-Length:147 {“error”:“部分写入:无法解析'my_tests,SNR = 533033200650344358002D00,TNR =测试HelloWorld = 123 1439856000 \ r':错误的时间戳丢弃= 0”}

All these tests where conducted using Fiddler Composer.

1 回答

  • 0

    “my_tests,SNR = 533033200650344358002D00,TNR = test HelloWorld = 123 1495179651177999872 \ n SNR = 533033200650344358002D00,TNR = test HelloWorld = 444 1495179651203000064”

相关问题