Skip to main content
Question

ELASTICSEARCH writer: {"error": "Content-Type header [application / x-javascript; charset = UTF-8] is not supported", "status": 406}

  • December 25, 2017
  • 3 replies
  • 378 views

m_tengbrand
Participant
Forum|alt.badge.img

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" }

3 replies

danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • December 26, 2017

Hi @m_tengbrand,

Could you share us your logfile?

Thanks,

Danilo


debbiatsafe
Safer
Forum|alt.badge.img+20
  • Safer
  • December 26, 2017

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


m_tengbrand
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • January 3, 2018

It seems to work in 2018.0 beta, thanks for the tip!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings