dakrone / es-mode

An Emacs major mode for interacting with Elasticsearch
GNU General Public License v3.0
195 stars 34 forks source link

Error while connecting to http://localhost:9200 #72

Open Compro-Prasad opened 5 years ago

Compro-Prasad commented 5 years ago
Issuing GET against http://localhost:9200/
View mode: type C-h for help, h for commands, q to quit.
REQUEST [error] Error (error) while connecting to http://localhost:9200/.
Response: Status: nil Content-Type: nil (nil bytes)

Its a fresh install of elasticsearch on Windows 10. I installed es-mode and got the above error. It is working when I use curl or the browser. Don't know what else should I install.

Also, I don't know how to write .es files. I have created a test.es with the following contents:

GET /
{}

It also doesn't work with:

GET /
Compro-Prasad commented 5 years ago

I think I got something:

#f(compiled-function (&rest rest) #<bytecode 0x2fa7e8d>)(:data "" :symbol-status error :error-thrown (error . "exited abnormally with code 2\n") :response #s(request-response :status-code nil :history nil :data "" :error-thrown (error . "exited abnormally with code 2\n") :symbol-status error :url "http://localhost:9200/" :done-p nil :settings (:type "GET" :parser buffer-string :headers (("Content-Type" . "application/json; charset=UTF-8")) :data "" :timeout 600 :complete #f(compiled-function (&rest rest) #<bytecode 0x2fa7e8d>) :error #f(compiled-function (&rest args2) #<bytecode 0x2fa7ecd>) :url "http://localhost:9200/" :response #8 :encoding utf-8) :-buffer #<killed buffer> :-raw-header "curl: option --compressed: the installed libcurl version doesn't support this\ncurl: try 'curl --help' for more information\n" :-timer nil :-backend curl :-tempfiles ("c:/Users/name/AppData/Local/Temp/1/emacs-requestCRjhuj")))

Here curl version is lower IMO: curl: option --compressed: the installed libcurl version doesn't support this\ncurl: try 'curl --help' for more information\n

Compro-Prasad commented 5 years ago

Elfeed also has a similar issue and is fixed by https://github.com/skeeto/elfeed/commit/40d3463ca2c4380d2d9aaf79b0ad8583f464d81b

dakrone commented 5 years ago

Interesting, I think this may have to do with the http client that es-mode uses.

Can you share what version of Elasticsearch you're using?

Compro-Prasad commented 5 years ago

7.3.1