influxdb: 404 Error on http://localhost:8086/query with version 0.13

Bug report

System info: InfluxDB 0.13, CentOS 6.8

Steps to reproduce:

  1. Just trying to do a simple curl -get and am getting a 404. Here’s the curl I’m trying: curl -GET 'http://localhost:8086/query' --data-urlencode "db=mydb" --data-urlencode "q=SELECT * FROM points"
  2. This same query works fine on the web admin webpage.

Expected behavior: JSON output from mydb showing all data points

Actual behavior: 404 page not found

Further; http://localhost:8086/ping works fine.

[root@local ~]# curl http://localhost:8086/ping
{"status":"ok"}

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 23 (6 by maintainers)

Most upvoted comments

@poblabs

I’m fairly confident I’m talking to InfluxDB based on the ping status:

[root@local ~]# curl http://localhost:8086/ping
{"status":"ok"}

That’s not InfluxDB. Current master, and as far back as I can remember, always returned a 204 (No Content) without a body.

$ curl  -vvv http://localhost:8086/ping
*   Trying ::1...
* Connected to localhost (::1) port 8086 (#0)
> GET /ping HTTP/1.1
> Host: localhost:8086
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 204 No Content
< Request-Id: 50543231-2749-11e6-8002-000000000000
< X-Influxdb-Version: unknown
< Date: Tue, 31 May 2016 16:04:11 GMT
<
* Connection #0 to host localhost left intact