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
  • 585 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" }
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • December 26, 2017

Hi @m_tengbrand,

Could you share us your logfile?

Thanks,

Danilo


debbiatsafe
Safer
Forum|alt.badge.img+21
  • 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!