abutaha / aws-es-proxy

aws-es-proxy is a small web server application sitting between your HTTP client (browser, curl, etc...) and Amazon Elasticsearch service.
Apache License 2.0
595 stars 202 forks source link

POST with url parameters fails #35

Open anegrin opened 6 years ago

anegrin commented 6 years ago

example: query with routing

curl -X POST http://localhost:8222/index/type/_count?routing=123 -d '{
  "query": {
    "term": {
      "user": 123
    }
  }
}'

aws-es-proxy verbose log prints:

2018/08/12 08:18:32 Generated fresh AWS Credentials object

and the curl returns empty response

< HTTP/1.1 200 OK
< Date: Sun, 12 Aug 2018 08:18:32 GMT
< Content-Length: 0
< Content-Type: text/plain; charset=utf-8

workaround: send a GET instead of a POST but this is not working with _delete_by_query as it requires POST

abutaha commented 5 years ago

Hi, Interesting will investigate this.