loopback-connector-elastic-search icon indicating copy to clipboard operation
loopback-connector-elastic-search copied to clipboard

Amazon AWS check for existing indices throws forbidden

Open ernie58 opened this issue 8 years ago • 5 comments

This line sets a body on the request with method HEAD, which is forbidden on Amazon AWS ES

https://github.com/strongloop-community/loopback-connector-elastic-search/blob/ca47fc6cd01f2c1be610aac0a33f61d81f61681e/lib/setupIndex.js#L38

Isn't it enough to just provide the indexName like this:

return self.db.indices.exists({index: indexName})

ernie58 avatar Dec 21 '16 12:12 ernie58

Anyone?

ernie58 avatar Jan 04 '17 11:01 ernie58

@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.

pulkitsinghal avatar Jan 05 '17 21:01 pulkitsinghal

You want me to make a PR?

ernie58 avatar Jan 06 '17 07:01 ernie58

You want me to make a PR?

@ernie58 - yes that would be super.

pulkitsinghal avatar Jan 06 '17 07:01 pulkitsinghal

@ernie58 Any updates on this?

aquid avatar Jul 29 '18 11:07 aquid