Skip to content

Write body received by handler一直未写入 #107

@XuankuF

Description

@XuankuF

你好,我写两条数据,一直未写入,命令如下:
curl -i -X POST 'http://192.168.33.33:8086/write?db=monitor' --data-binary 'temperature,host=s2 value=0.6499999'
curl -i -X POST 'http://192.168.33.33:8086/write?db=monitor' --data-binary 'temperature,host=s3 value=0.88888881212211221'
日志一直打印:

2020/08/11 14:53:35.043490 http.go:140: Write body received by handler: temperature,host=s2 value=0.6499999
temperature,host=s3 value=0.88888881212211221
,the client is 192.168.33.33:51389
2020/08/11 14:53:35.244816 http.go:140: Write body received by handler: temperature,host=s2 value=0.6499999
temperature,host=s3 value=0.88888881212211221

查询:
curl -v -X GET 'http://192.168.33.32:8086/query?db=monitor' --data-urlencode "q=SELECT host FROM temperature where time< now()"
日志打印:

*   Trying 192.168.33.32...
* TCP_NODELAY set
* Connected to 192.168.33.32 (192.168.33.32) port 8086 (#0)
> GET /query?db=monitor HTTP/1.1
> Host: 192.168.33.32:8086
> User-Agent: curl/7.60.0
> Accept: */*
> Content-Length: 66
> Content-Type: application/x-www-form-urlencoded
> 
* upload completely sent off: 66 out of 66 bytes
< HTTP/1.1 400 Bad Request
< X-Influxdb-Version: 1.1
< Date: Tue, 11 Aug 2020 06:54:32 GMT
< Content-Length: 11
< Content-Type: text/plain; charset=utf-8
< 
* Connection #0 to host 192.168.33.32 left intact

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