본문 바로가기
반응형

오류4

Content-Type header [application... #ElasticSearch 8.3.3 >curl -X PUT "localhost:9200/user/_doc/1?pretty" -H 'Content-Type:application/json' -d '{"username":"nanglam"}' { "error" : "Content-Type header [application/x-www-form-urlencoded] is not supported", "status" : 406 } 후하. curl: (6) Could not resolve host: application 까지 해결하니깐 Content-Type header ... 에러가 나온다.. 구글링 결과 -H 'Content-Type:application/json'을 옵션에 추가하면 저 Content-Type header ... 에러가 안나온다고 .. 2022. 8. 9.
curl: (6) Could not resolve host: application #ElasticSearch 8.3.3 >curl -X PUT "localhost:9200/user/_doc/1?pretty" -H 'Content-Type: application/json' -d'{"username":"nanglam"}' { "error" : "Content-Type header [application/x-www-form-urlencoded] is not supported", "status" : 406 } curl: (6) Could not resolve host: application -H 'Content-Type: application/json'을 추가하고 실행하면 curl: (6) Could not resolve host: application 오류가 나온다. >curl -X PUT "localhost:9200/user.. 2022. 8. 8.
curl: (60) schannel: SEC_E_UNTRUSTED_ROOT #ElasticSearch 8.3.3 >curl http://localhost:9200 curl: (52) Empty reply from server [@timestamp][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [USER] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:59661} 해당 오류는 접속 할 때 HTTP를 사용해서 발생하므로 https를 사용하면 해결 할 줄 알았다. 그런데.. >curl https://localhost:9200 curl: (60) schannel.. 2022. 8. 7.
curl: (52) Empty reply from server #ElasticSearch 8.3.3 Elasticsearch를 윈도우에서 다운로드하고, ElasticSearch 8.3.3을 실행시켰다. 그 후 curl 명령을 날리면 다음과 같은 에러가 나타난다. >curl http://localhost:9200 curl: (52) Empty reply from server [@timestamp][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [USER] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:59661} https://stackoverf.. 2022. 8. 6.
반응형