I try to write json to an elasticsearch index with elasticsearch writer but get the following errors: ELASTICSEARCH writer: {"error": "Content-Type header [application / x-javascript; charset = UTF-8] is not supported", "status": 406}
I use Document source: json attribute Raw json attribute: _response_body where _response_body contains: { "Id":"13d5ccdf-76a8-45c7-83b6-24753699f5b0", "Beteckning":"A014821" }Page 1 / 1
Hi @m_tengbrand,
Could you share us your logfile?
Thanks,
Danilo
Hi @m_tengbrand
Are you using FME 2017.x and writing to Elasticsearch 6? If so, this is a known issue (PR80736) and occurs due to some 3rd party libraries (GDAL and curl) used with the Elasticsearch writer. This issue has been fixed in current 2018.0 beta builds so I would recommend using FME 2018.x (builds 18223 and up) to write to Elasticsearch 6 as a workaround.
Kind regards,
Debbi
It seems to work in 2018.0 beta, thanks for the tip!
