skip to Main Content

Ubuntu – Couldn't connect to server when using Elasticsearch

When using Localhost it's working fine root@ip-172-16-0-102:/home/ubuntu# curl localhost:9200 { "name" : "ip-172-16-0-102", "cluster_name" : "elasticsearch", "cluster_uuid" : "xXGFhvjvR_qbJK_oC0YPSg", "version" : { "number" : "8.13.4", "build_flavor" : "default", "build_type" : "deb", "build_hash" : "da95df118650b55a500dcc181889ac35c6d8da7c", "build_date" : "2024-05-06T22:04:45.107454559Z", "build_snapshot" : false,…

VIEW QUESTION

Can I do without aggressive escaping when executing my curls with JSON payload?

I'm not comfortable with this heavy escaping in my curls curl -X POST -H "Content-Type:application/json" -d "{"username":"john","password":"12345"}" http://localhost:8100/signup I read this answer. Single quotes are not accepted curl -X POST -H "Content-Type:application/json" -d '{"username":"john","password":"12345"}' http://localhost:8100/signup org.springframework.core.codec.DecodingException: JSON decoding error: Unexpected…

VIEW QUESTION
Back To Top
Search