- 
                Notifications
    You must be signed in to change notification settings 
- Fork 395
Open
Labels
Description
I'm using laravel 5.1. The app is hosted on an EC2 instance and doing a cURL request from there returns a response:
$ curl search-instance-name-912ec803b2ce49.us-east-1.es.amazonaws.com
{
  "name" : "Agent Axis",
  "cluster_name" : 1234567890:instance-name",
  "version" : {
    "number" : "2.3.2",
    "build_hash" : "0ab538e92c6db78d10b1694e645f3625",
    "build_timestamp" : "2016-11-14T15:59:50Z",
    "build_snapshot" : false,
    "lucene_version" : "5.5.0"
  },
  "tagline" : "You Know, for Search"
}
But when running the code below (from a Console command) I get a Elasticsearch\Common\Exceptions\NoNodesAvailableException exception thrown
$products = Products::addAllToIndex();
$files = File::addAllToIndex();Here is a gist of the exception stack trace incase it helps: https://gist.github.com/zakiaziz/1fa94f9c3f504a5a9bc756ebd96f9065
I've also tried changing my host to https://search-instance-name-912ec803b2ce49.us-east-1.es.amazonaws.com:443 but no luck
- Operating System: Ubuntu 14.04
- PHP Version: 5.5.9
- ES-PHP client version: v2.1.5
- Elasticsearch version: 2.3