lmenezes/cerebro

rest client is missing headers

開放

#396 建立於 2019年9月5日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (734 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (5,609 顆星)
PR 合併指標
 (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

貢獻者指南