Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 구현
- 재귀함수
- 세그먼트트리
- spring
- BFS
- 네트워크플로우
- 다익스트라
- QUICKSTARTGUIDE
- 우선순위큐
- COSPRO
- 알고리즘
- 백준
- 자바PS
- COSPROJAVA1급
- dp
- GatherTown
- DFS
- 다이나믹프로그래밍
- 백준코딩테스트
- 이젠 골드구현도 어렵네..
- 취득후기
- PS
- 엘라스틱서치
- 시뮬레이션
- java
- YBMCOS
- deque
- 게더타운시작
- 01BFS
- 완전탐색
Archives
- Today
- Total
공부공간
[Elastic Search] Content-Type header [application/x-www-form-urlencoded] is not supported error 본문
ELK 뽀개기/ElasticSearch
[Elastic Search] Content-Type header [application/x-www-form-urlencoded] is not supported error
개발자가될수있을까? 2020. 8. 24. 14:47엘라스틱 서치 5.x 버전부터 데이터를 넣을 때 헤더에 미디어 타입을 정해주어야합니다.
curl -XPOST "localhost:9200/blog/post/1?pretty=true"
-d "{""name"":""sangwon"",""posttitle"":""elastic search beginning""}"
기존 쿼리는
{
"error" : "Content-Type header [application/x-www-form-urlencoded] is not supported",
"status" : 406
}
이러한 에러가 발생합니다.
curl -XPOST "localhost:9200/blog/post/1?pretty=true"
-d "{""name"":""sangwon"",""posttitle"":""elastic search beginning""}"
-H "Content-Type: application/json"
으로 데이터 뒤에 다음 문구를 추가해 줍시다.
-H "Content-Type: application/json"
끝
'ELK 뽀개기 > ElasticSearch' 카테고리의 다른 글
[Elastic Search] ElasticSearch CRUD (0) | 2020.08.24 |
---|---|
[Elastic Search] Elastic Search란? + window 10에서 Elastic Search 설치 (0) | 2020.08.22 |