Page MenuHomePhabricator

Elasticsearch 5.5/5.6 Content-Type error with MW 1.30
Closed, ResolvedPublic

Description

"Content type detection for rest requests is deprecated. Specify the content type using the [Content-Type] header." in elasticsearch_deprecation.log.

It seems to be a error stated here: https://github.com/olivere/elastic/issues/511

Where Content-Type header should be set to application/x-ndjson.

Extension:CirrusSearch might need to change it's code accordingly, since the api of Elasticsearch changed.

I am using:
MediaWiki 1.30.0
PHP 7.0.27-1~dotdeb+8.1 (fpm-fcgi)
MySQL 5.5.59-0+deb8u1-log
ICU 52.1
Elasticsearch 5.6.4

https://github.com/wikimedia/mediawiki-extensions-CirrusSearch/tree/REL1_30

Event Timeline

Zoglun created this task.Feb 6 2018, 8:28 PM
Restricted Application added projects: Discovery, Discovery-Search. · View Herald TranscriptFeb 6 2018, 8:28 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
dcausse closed this task as Resolved.Feb 6 2018, 9:04 PM
dcausse claimed this task.
dcausse added a subscriber: dcausse.

Thanks for the report.
Indeed elasticsearch 5.3.x or 5.4.x is needed if running Mediawiki 1.30 (https://www.mediawiki.org/wiki/Extension:CirrusSearch).
Elastic 5.5 and 5.6 will be supported by MW 1.31.

ref:

Zoglun added a comment.Feb 6 2018, 9:05 PM

Cool, thank you!

Aklapper renamed this task from Elasticsearch Content-Type error. to Elasticsearch 5.5/5.6 Content-Type error with MW 1.30.Feb 7 2018, 12:57 PM