Elasticsearch: Error when import visualization into Elasticsearch 6.0.0-alpha2

Created on 9 Jun 2017  路  4Comments  路  Source: elastic/elasticsearch

Elasticsearch version: Elasticsearch 6.0.0-alpha2

Plugins installed: []

JVM version: openjdk version "1.8.0_131"

OS version: Linux 0a1950b835b7 3.13.0-117-generic #164-Ubuntu SMP Fri Apr 7 11:05:26 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Description of the problem including expected versus actual behavior:
I'm using a python script to import visualization, search and dashboard into kibana, it works perfect with latest stable version: 5.4.1
but with this version 6.0.0-alpha2, it throw this error:

Posting: e641f850-3f0c-11e7-a6f3-0911a5674aba (visualization)
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}

Steps to reproduce:

  1. clone this script: https://gist.github.com/sadok-f/7085c0be7194136bd5c7fabb2f705b56
  2. run it python load_kibana_objects.py export.json http://192.168.33.11:9200

Thank you !

Most helpful comment

This is not a bug on our side. You need to set the header Content-Type to application/json. We reserved GitHub for verified bug reports and feature requests. If you need additional help, please ask on the forum.

All 4 comments

This is not a bug on our side. You need to set the header Content-Type to application/json. We reserved GitHub for verified bug reports and feature requests. If you need additional help, please ask on the forum.

Also, you can see the same behavior in 5.4.1 if you set http.content_type.required to true. This is the default in 6.0.0 and is unchangeable.

Thank you for your quick response,

You're welcome.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rjernst picture rjernst  路  3Comments

Praveen82 picture Praveen82  路  3Comments

clintongormley picture clintongormley  路  3Comments

abtpst picture abtpst  路  3Comments

ttaranov picture ttaranov  路  3Comments