lmenezes/cerebro

rest client is missing headers

开放

#396 创建于 2019年9月5日

 (0 条评论) (0 个反应) (0 位负责人)JavaScript (734 个派生)batch import
bughelp wanted

仓库指标

星标
 (5,609 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

If I try to make the request GET /_cluster/health through the REST interface, I get:

{
  "error": "Content-Type header is missing",
  "status": 406
}

I'm running AWS elasticsearch 6.7, and using a reverse proxy to get the signed request that AWS needs. If I curl to the proxy I get the expected response so I'm assuming the issue is in cerebro's rest client, and not the proxy (the curl command was copied from cerebro's rest interface).

Odly enough, the proxy is actually receiving this very same requests from cerebro's normal operation and it works well (for example /_cluster/health).

This is the proxy: https://github.com/mozilla-services/aws-signing-proxy

贡献者指南