# Content type detection for rest requests is deprecated with lastest ES and FSCrawler

**URL:** https://discuss.elastic.co/t/content-type-detection-for-rest-requests-is-deprecated-with-lastest-es-and-fscrawler/88473
**Category:** Elasticsearch
**Created:** [June 6, 2017, 9:08pm UTC](https://discuss.elastic.co/t/content-type-detection-for-rest-requests-is-deprecated-with-lastest-es-and-fscrawler/88473 "2017-06-06T21:08:02Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![sekerg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sekerg/32/18499_2.png) [@sekerg](https://discuss.elastic.co/u/sekerg)
#### Post date: [June 6, 2017, 9:08pm UTC](https://discuss.elastic.co/t/content-type-detection-for-rest-requests-is-deprecated-with-lastest-es-and-fscrawler/88473/1 "2017-06-06T21:08:02Z")

</div>

Getting:

[299 Elasticsearch-5.4.1-2cfe0df Content type detection for rest requests is deprecated. Specify the content type using the [Content-Type] header

This occurs are startup of FSCrawler.

Thought this was resolved with lastest:  
Elasticsearch: 5.4.1  
FSCrawler: 2.2

Any thoughts ?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [June 6, 2017, 9:27pm UTC](https://discuss.elastic.co/t/content-type-detection-for-rest-requests-is-deprecated-with-lastest-es-and-fscrawler/88473/2 "2017-06-06T21:27:16Z")

</div>

This is fixed in FSCrawler 2.3. Try the latest SNAPSHOT. Link is available in the README.

---

<div class="post-metadata">

### Author: ![sekerg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sekerg/32/18499_2.png) [@sekerg](https://discuss.elastic.co/u/sekerg)
#### Post date: [June 6, 2017, 10:53pm UTC](https://discuss.elastic.co/t/content-type-detection-for-rest-requests-is-deprecated-with-lastest-es-and-fscrawler/88473/3 "2017-06-06T22:53:05Z")

</div>

great, thx.

I will probably wait for a stable zip package for 2.3

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [June 7, 2017, 2:05am UTC](https://discuss.elastic.co/t/content-type-detection-for-rest-requests-is-deprecated-with-lastest-es-and-fscrawler/88473/4 "2017-06-07T02:05:56Z")

</div>

TBH the latest 2.3-SNAP is more stable than the 2.2 version... 🙂

I hope I can release it anytime soon though.

---

<div class="post-metadata">

### Author: ![sekerg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sekerg/32/18499_2.png) [@sekerg](https://discuss.elastic.co/u/sekerg)
#### Post date: [June 7, 2017, 12:33pm UTC](https://discuss.elastic.co/t/content-type-detection-for-rest-requests-is-deprecated-with-lastest-es-and-fscrawler/88473/5 "2017-06-07T12:33:38Z")

</div>

Ok, thx.

Going with  
fscrawler-2.3-20170602.114150-43.zip Fri Jun 02 11:41:54 UTC 2017

Same problem with ""Content type detection for rest requests is deprecated" .... only at a faster rate.

exec /usr/lib/jvm/jdk1.8.0\_91//bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager -cp /opt/fc/lib/\* -jar /opt/fc/lib/fscrawler-2.3-SNAPSHOT.jar --config\_dir /opt/fc/config cix-fscrawler ...

08:12:27,930 INFO [f.p.e.c.f.FsCrawlerImpl] Starting FS crawler  
08:12:27,935 INFO [f.p.e.c.f.FsCrawlerImpl] FS crawler started in watch mode. It will run unless you stop it with CTRL+C.  
08:12:28,894 WARN [o.e.c.RestClient] request [PUT [http://127.0.0.1:9200/cix-fscrawler](http://127.0.0.1:9200/cix-fscrawler)] returned 1 warnings: [299 Elasticsearch-5.4.1-2cfe0df "Content type detection for rest requests is deprecated. Specify the content type using the [Content-Type] header." "Wed, 07 Jun 2017 12:12:28 GMT"]  
08:12:28,952 INFO [f.p.e.c.f.FsCrawlerImpl] FS crawler started for [cix-fscrawler] for [/opt/cix/filestore] every [1m]  
08:12:29,912 WARN [o.e.c.RestClient] request [POST [http://127.0.0.1:9200/\_bulk](http://127.0.0.1:9200/_bulk)] returned 1 warnings: [299 Elasticsearch-5.4.1-2cfe0df "Content type detection for rest requests is deprecated. Specify the content type using the [Content-Type] header." "Wed, 07 Jun 2017 12:12:29 GMT"]

---

<div class="post-metadata">

### Author: ![sekerg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sekerg/32/18499_2.png) [@sekerg](https://discuss.elastic.co/u/sekerg)
#### Post date: [June 7, 2017, 12:57pm UTC](https://discuss.elastic.co/t/content-type-detection-for-rest-requests-is-deprecated-with-lastest-es-and-fscrawler/88473/6 "2017-06-07T12:57:22Z")

</div>

Using ...

\_settings.json  
{  
"name" : "cix-fscrawler",  
"fs" : {  
"url" : "/opt/cix/filestore",  
"update\_rate" : "1m",  
"excludes" : ["~\*"],  
"json\_support" : false,  
"filename\_as\_id" : false,  
"add\_filesize" : true,  
"remove\_deleted" : true,  
"add\_as\_inner\_object" : false,  
"store\_source" : true,  
"index\_content" : true,  
"attributes\_support" : false,  
"raw\_metadata" : true,  
"xml\_support" : false,  
"pdf\_ocr" : true,  
"index\_folders" : true,  
"lang\_detect" : false  
},  
"elasticsearch" : {  
"nodes" : [ {  
"host" : "127.0.0.1",  
"port" : 9200,  
"scheme" : "HTTP"  
} ],  
"type" : "doc",  
"bulk\_size" : 100,  
"flush\_interval" : "5s"  
},  
"rest" : {  
"scheme" : "HTTP",  
"host" : "127.0.0.1",  
"port" : 8080,  
"endpoint" : "fscrawler"  
}  
}

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [June 7, 2017, 1:48pm UTC](https://discuss.elastic.co/t/content-type-detection-for-rest-requests-is-deprecated-with-lastest-es-and-fscrawler/88473/7 "2017-06-07T13:48:33Z")

</div>

Very interesting. Another user reported something like that. Ok can you open an issue in FSCrawler project. I'll check and fix that.

Thanks !

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 5, 2017, 1:48pm UTC](https://discuss.elastic.co/t/content-type-detection-for-rest-requests-is-deprecated-with-lastest-es-and-fscrawler/88473/8 "2017-07-05T13:48:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
