{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop-community/loopback-connector-elastic-search/issues/63","repository_url":"https://api.github.com/repos/strongloop-community/loopback-connector-elastic-search","labels_url":"https://api.github.com/repos/strongloop-community/loopback-connector-elastic-search/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/strongloop-community/loopback-connector-elastic-search/issues/63/comments","events_url":"https://api.github.com/repos/strongloop-community/loopback-connector-elastic-search/issues/63/events","html_url":"https://github.com/strongloop-community/loopback-connector-elastic-search/issues/63","id":196924654,"number":63,"title":"Amazon AWS check for existing indices throws forbidden","user":{"login":"ernie58","id":598177,"avatar_url":"https://avatars.githubusercontent.com/u/598177?v=3","gravatar_id":"","url":"https://api.github.com/users/ernie58","html_url":"https://github.com/ernie58","followers_url":"https://api.github.com/users/ernie58/followers","following_url":"https://api.github.com/users/ernie58/following{/other_user}","gists_url":"https://api.github.com/users/ernie58/gists{/gist_id}","starred_url":"https://api.github.com/users/ernie58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ernie58/subscriptions","organizations_url":"https://api.github.com/users/ernie58/orgs","repos_url":"https://api.github.com/users/ernie58/repos","events_url":"https://api.github.com/users/ernie58/events{/privacy}","received_events_url":"https://api.github.com/users/ernie58/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-21T12:46:32Z","updated_at":"2017-01-05T21:34:33Z","closed_at":null,"body":"This line sets a body on the request with method HEAD, which is forbidden on Amazon AWS ES\r\n\r\nhttps://github.com/strongloop-community/loopback-connector-elastic-search/blob/ca47fc6cd01f2c1be610aac0a33f61d81f61681e/lib/setupIndex.js#L38\r\n\r\nIsn't it enough to just provide the indexName like this:\r\n`````\r\nreturn self.db.indices.exists({index: indexName})\r\n`````\r\n"},"comment":{"url":"https://api.github.com/repos/strongloop-community/loopback-connector-elastic-search/issues/comments/270764142","html_url":"https://github.com/strongloop-community/loopback-connector-elastic-search/issues/63#issuecomment-270764142","issue_url":"https://api.github.com/repos/strongloop-community/loopback-connector-elastic-search/issues/63","id":270764142,"user":{"login":"pulkitsinghal","id":821963,"avatar_url":"https://avatars.githubusercontent.com/u/821963?v=3","gravatar_id":"","url":"https://api.github.com/users/pulkitsinghal","html_url":"https://github.com/pulkitsinghal","followers_url":"https://api.github.com/users/pulkitsinghal/followers","following_url":"https://api.github.com/users/pulkitsinghal/following{/other_user}","gists_url":"https://api.github.com/users/pulkitsinghal/gists{/gist_id}","starred_url":"https://api.github.com/users/pulkitsinghal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulkitsinghal/subscriptions","organizations_url":"https://api.github.com/users/pulkitsinghal/orgs","repos_url":"https://api.github.com/users/pulkitsinghal/repos","events_url":"https://api.github.com/users/pulkitsinghal/events{/privacy}","received_events_url":"https://api.github.com/users/pulkitsinghal/received_events","type":"User","site_admin":false},"created_at":"2017-01-05T21:34:33Z","updated_at":"2017-01-05T21:34:33Z","body":"@ernie58 - Hey boss! thanks for reporting this, sorry that I missed it until today, so thanks again for the re-ping! Will work on this on the weekend."}}
{"actor":{"display_login":"pulkitsinghal"}}