{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-ruby/issues/226","labels_url":"https://api.github.com/repos/elastic/elasticsearch-ruby/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-ruby/issues/226/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-ruby/issues/226/events","html_url":"https://github.com/elastic/elasticsearch-ruby/issues/226","id":110101557,"number":226,"title":"Not working using the new Amazon Elasticsearch service","user":{"login":"rkrdo","id":469507,"avatar_url":"https://avatars.githubusercontent.com/u/469507?v=3","gravatar_id":"","url":"https://api.github.com/users/rkrdo","html_url":"https://github.com/rkrdo","followers_url":"https://api.github.com/users/rkrdo/followers","following_url":"https://api.github.com/users/rkrdo/following{/other_user}","gists_url":"https://api.github.com/users/rkrdo/gists{/gist_id}","starred_url":"https://api.github.com/users/rkrdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkrdo/subscriptions","organizations_url":"https://api.github.com/users/rkrdo/orgs","repos_url":"https://api.github.com/users/rkrdo/repos","events_url":"https://api.github.com/users/rkrdo/events{/privacy}","received_events_url":"https://api.github.com/users/rkrdo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch-ruby/labels/waiting","name":"waiting","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-06T21:08:39Z","updated_at":"2015-10-08T11:55:19Z","closed_at":"2015-10-08T11:55:19Z","body":"I'm trying to use the new [Amazon Elasticsearch service](https://aws.amazon.com/elasticsearch-service/) with the `elasticsearch-rails` gem, however, I'm getting the following error when trying to use a bulk import:\r\n\r\n```\r\nElasticsearch::Transport::Transport::Errors::Forbidden: [403] {\"message\":\"When Content-Type:application/x-www-form-urlencoded, URL cannot include query-string parameters (after '?'): '/users/user/_bulk?type=user'\"}\r\n        from ../gems/elasticsearch-transport-1.0.13/lib/elasticsearch/transport/transport/base.rb:136:in `__raise_transport_error'\r\n        from ../gems/elasticsearch-transport-1.0.13/lib/elasticsearch/transport/transport/base.rb:228:in `perform_request'\r\n        from ../gems/elasticsearch-transport-1.0.13/lib/elasticsearch/transport/transport/http/faraday.rb:20:in `perform_request'\r\n        from ../gems/elasticsearch-transport-1.0.13/lib/elasticsearch/transport/client.rb:119:in `perform_request'\r\n        from ../gems/elasticsearch-api-1.0.13/lib/elasticsearch/api/actions/bulk.rb:80:in `bulk'\r\n        from ../bundler/gems/elasticsearch-rails-2ed221c6acd9/elasticsearch-model/lib/elasticsearch/model/importing.rb:123:in `block in import'\r\n        from ../bundler/gems/elasticsearch-rails-2ed221c6acd9/elasticsearch-model/lib/elasticsearch/model/adapters/active_record.rb:96:in `block in __find_in_batches'\r\n        from ../gems/activerecord-4.0.13/lib/active_record/relation/batches.rb:76:in `find_in_batches'\r\n        from ../gems/activerecord-deprecated_finders-1.0.4/lib/active_record/deprecated_finders/relation.rb:70:in `find_in_batches'\r\n        from ../gems/activerecord-4.0.13/lib/active_record/querying.rb:8:in `find_in_batches'\r\n        from ../bundler/gems/elasticsearch-rails-2ed221c6acd9/elasticsearch-model/lib/elasticsearch/model/proxy.rb:81:in `method_missing'\r\n        from ../bundler/gems/elasticsearch-rails-2ed221c6acd9/elasticsearch-model/lib/elasticsearch/model/adapters/active_record.rb:95:in `__find_in_batches'\r\n        from ../bundler/gems/elasticsearch-rails-2ed221c6acd9/elasticsearch-model/lib/elasticsearch/model/importing.rb:122:in `import'\r\n        from ../bundler/gems/elasticsearch-rails-2ed221c6acd9/elasticsearch-model/lib/elasticsearch/model.rb:115:in `import'\r\n        from (irb):3\r\n        from ../gems/railties-4.0.13/lib/rails/commands/console.rb:90:in `start'\r\n        from ../gems/railties-4.0.13/lib/rails/commands/console.rb:9:in `start'\r\n        from ../gems/railties-4.0.13/lib/rails/commands.rb:62:in `<top (required)>'\r\n        from script/rails:6:in `require'\r\n```\r\n\r\nSo it seems the Elasticsearch service doesn't like to receive query-string parameters.\r\n\r\nI also found this [post](http://qiita.com/ma2saka/items/01e038c2ef43d9875651) that kind of addresses the same issue. (warning, it's in japanese)"}}