Got err with ES API request "no handler found for uri"

I got err with the below request :

url = ENV['KIBANA_ELASTICSEARCH_SERVICE'] + '/mib_prod*/_search?filter_path=hits.hits._source.message,hits.hits._source.timestamp'
    header = {'Content-Type' => 'application/json'}
    body = {"sort": [{ "@timestamp": {"order": "desc"}}], "query":{"query_string": {"query": log_search}}}

add the err is

ERROR: HTTP GET Request failed, URL: http://10.31.143.204:9200/fsaf*/_search?filter_path=hits.hits._source.message,hits.hits._source.timestamp, error message: {"error":"no handler found for uri [http://10.31.143.204:9200/mib_prod*/_search?filter_path=hits.hits._source.message,hits.hits._source.timestamp] and method [GET]"}

ES version is 6.6.0

The Curl request is successful, with "" before " in the URL.

I am unsure if it's the same issue with the URL or any other issues.

Could someone take a look? thanks!

Welcome to our community! :smiley:

Please note that version is EOL and no longer supported, you should be looking to upgrade as a matter of urgency.

What does a GET fsaf*/_search return you?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.