Health and connection issues even though ES up and running

I am testing for health and connections for my elasticsearch cluster, even though, this service is up and running. Unfortunately, I am getting error message as curl: (52) Empty reply from server


curl -u elasticsearch:elasticsearch -X GET "http://localhost:9200/\_cat/nodes?pretty"

curl: (52) Empty reply from server

curl -v GET "http://localhost:9200/_cluster/health"

  • Rebuilt URL to: GET/
  • Could not resolve host: GET
  • Closing connection 0
    curl: (6) Could not resolve host: GET
  • Trying xx.xx.xx.xxx...
  • TCP_NODELAY set
  • Connected to xx.xx.xx.xxx (xx.xx.xx.xxx) port 9200 (#1)

GET /_cluster/health HTTP/1.1
Host: xx.xx.xx.xxx:9200
User-Agent: curl/7.61.1
Accept: /

  • Empty reply from server
  • Connection #1 to host xx.xx.xx.xxx left intact
    curl: (52) Empty reply from server

Have you tried connecting over HTTPS?

Hello Christian_Dahlqvist

Yes, I tried.

Unfortunately, I realized that I was passing wrong password. However, now everything is working as expected.

Thank you for your quick response.