{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-ruby/issues/299","repository_url":"https://api.github.com/repos/elastic/elasticsearch-ruby","labels_url":"https://api.github.com/repos/elastic/elasticsearch-ruby/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-ruby/issues/299/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-ruby/issues/299/events","html_url":"https://github.com/elastic/elasticsearch-ruby/issues/299","id":147823011,"number":299,"title":"Call to \"api/actions/indices/exists\" is failing with 1.0.17. Reverting to 1.0.15 fixes the issue.","user":{"login":"lockstone","id":1022533,"avatar_url":"https://avatars.githubusercontent.com/u/1022533?v=3","gravatar_id":"","url":"https://api.github.com/users/lockstone","html_url":"https://github.com/lockstone","followers_url":"https://api.github.com/users/lockstone/followers","following_url":"https://api.github.com/users/lockstone/following{/other_user}","gists_url":"https://api.github.com/users/lockstone/gists{/gist_id}","starred_url":"https://api.github.com/users/lockstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lockstone/subscriptions","organizations_url":"https://api.github.com/users/lockstone/orgs","repos_url":"https://api.github.com/users/lockstone/repos","events_url":"https://api.github.com/users/lockstone/events{/privacy}","received_events_url":"https://api.github.com/users/lockstone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-12T17:41:07Z","updated_at":"2016-05-09T13:53:46Z","closed_at":null,"body":"I don't know why this is happening, but updating to 1.0.17 breaks our interaction with elasticsearch. Here's the relevant code fragment, followed by the stack trace we get. There's no other information I can see.\r\n```ruby\r\nclient =\r\n  Elasticsearch::Client.new(\r\n    hosts: [ {\r\n      host:     the_host,\r\n      port:     the_port,\r\n      user:     the_username,\r\n      password: the_password\r\n    } ]\r\n  )\r\nif client\r\n  if client.indices.exists(index: index) # This is the line that fails.\r\n    client.indices.delete(index: index)\r\n  end\r\nend\r\n```\r\n```ruby\r\nelasticsearch-transport-1.0.17/lib/elasticsearch/transport/transport/base.rb:201:in `__raise_transport_error'\r\nelasticsearch-transport-1.0.17/lib/elasticsearch/transport/transport/base.rb:312:in `perform_request'\r\nelasticsearch-transport-1.0.17/lib/elasticsearch/transport/transport/http/faraday.rb:20:in `perform_request'\r\nelasticsearch-transport-1.0.17/lib/elasticsearch/transport/client.rb:128:in `perform_request'\r\nelasticsearch-api-1.0.17/lib/elasticsearch/api/namespace/common.rb:21:in `perform_request'\r\nelasticsearch-api-1.0.17/lib/elasticsearch/api/actions/indices/exists.rb:46:in `block in exists'\r\nelasticsearch-api-1.0.17/lib/elasticsearch/api/utils.rb:197:in `__rescue_from_not_found'\r\nelasticsearch-api-1.0.17/lib/elasticsearch/api/actions/indices/exists.rb:45:in `exists'`\r\n```"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-ruby/issues/comments/217870427","html_url":"https://github.com/elastic/elasticsearch-ruby/issues/299#issuecomment-217870427","issue_url":"https://api.github.com/repos/elastic/elasticsearch-ruby/issues/299","id":217870427,"user":{"login":"karmi","id":4790,"avatar_url":"https://avatars.githubusercontent.com/u/4790?v=3","gravatar_id":"","url":"https://api.github.com/users/karmi","html_url":"https://github.com/karmi","followers_url":"https://api.github.com/users/karmi/followers","following_url":"https://api.github.com/users/karmi/following{/other_user}","gists_url":"https://api.github.com/users/karmi/gists{/gist_id}","starred_url":"https://api.github.com/users/karmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karmi/subscriptions","organizations_url":"https://api.github.com/users/karmi/orgs","repos_url":"https://api.github.com/users/karmi/repos","events_url":"https://api.github.com/users/karmi/events{/privacy}","received_events_url":"https://api.github.com/users/karmi/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T13:53:46Z","updated_at":"2016-05-09T13:53:46Z","body":"Hi @lockstone, I've run:\r\n\r\n```ruby\r\nclient = Elasticsearch::Client.new url: 'localhost:9200';\r\nclient.indices.exists index: 'foobar'\r\n# => false\r\n```\r\n\r\nagainst ES 1.7.5 and 5.0-alpha, and all works. The last commit to the \"Indices Exist\" API is from a year ago (4e2a3d3), so there's a slight possibility the updates to the transport component have broken something, but I'd need some data to work with... Can you enable logging and check? (Assuming you have not solved the problem in the meantime, can you close the issue in that case?)"}}