ElasticSearch-head during operation, an error code is reported 406

 

 查询时报错{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}

 

Solution:

1, into the head installation directory; docker exec -it name bash

2, open the folder _site, cd _site /

3, there are two editing vendor.js

      ①. 6886行   contentType: "application/x-www-form-urlencoded

           Change

         contentType: "application/json;charset=UTF-8"

      ②. 7574行 var inspectData = s.contentType === "application/x-www-form-urlencoded" &&

        Change

            var inspectData = s.contentType === "application/json;charset=UTF-8" &&

Guess you like

Origin www.cnblogs.com/killer21/p/12061388.html