Calling elasticsearch gives error “curl: (52) Empty reply from server”
Open the elasticsearch configuration file.
sudo nano /etc/elasticsearch/elasticsearch.yml
Set Enable Security Features as false at below line.
xpack.security.enabled: false
Save and Restart elasticsearch,
sudo service elasticsearch restart
Test now and you will get the result.
Updated : 06 Apr 24