{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-php/issues/235","labels_url":"https://api.github.com/repos/elastic/elasticsearch-php/issues/235/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-php/issues/235/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-php/issues/235/events","html_url":"https://github.com/elastic/elasticsearch-php/issues/235","id":78569369,"number":235,"title":"Response body is null. ","user":{"login":"macnibblet","id":1127626,"avatar_url":"https://avatars.githubusercontent.com/u/1127626?v=3","gravatar_id":"","url":"https://api.github.com/users/macnibblet","html_url":"https://github.com/macnibblet","followers_url":"https://api.github.com/users/macnibblet/followers","following_url":"https://api.github.com/users/macnibblet/following{/other_user}","gists_url":"https://api.github.com/users/macnibblet/gists{/gist_id}","starred_url":"https://api.github.com/users/macnibblet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macnibblet/subscriptions","organizations_url":"https://api.github.com/users/macnibblet/orgs","repos_url":"https://api.github.com/users/macnibblet/repos","events_url":"https://api.github.com/users/macnibblet/events{/privacy}","received_events_url":"https://api.github.com/users/macnibblet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-20T15:27:18Z","updated_at":"2015-05-20T15:27:18Z","closed_at":null,"body":"```php\r\n$remote = ClientBuilder::create()->setHosts(['localhost'])->build();\r\n\r\nif (! $remote->indices()->exists(['index' => $index])) {\r\n    $output->writeln('<error>Index missing</error>');\r\n}\r\n```\r\n\r\nStacktrace\r\n```\r\narray(8) {\r\n  'transfer_stats' =>\r\n  array(28) {\r\n    'url' =>\r\n    string(26) \"http://localhost:9200/rtmp\"\r\n    'content_type' =>\r\n    string(25) \"text/plain; charset=UTF-8\"\r\n    'http_code' =>\r\n    int(404)\r\n    'header_size' =>\r\n    int(86)\r\n    'request_size' =>\r\n    int(45)\r\n    'filetime' =>\r\n    int(-1)\r\n    'ssl_verify_result' =>\r\n    int(0)\r\n    'redirect_count' =>\r\n    int(0)\r\n    'total_time' =>\r\n    double(0.004923)\r\n    'namelookup_time' =>\r\n    double(0.004232)\r\n    'connect_time' =>\r\n    double(0.004557)\r\n    'pretransfer_time' =>\r\n    double(0.004883)\r\n    'size_upload' =>\r\n    double(0)\r\n    'size_download' =>\r\n    double(0)\r\n    'speed_download' =>\r\n    double(0)\r\n    'speed_upload' =>\r\n    double(0)\r\n    'download_content_length' =>\r\n    double(0)\r\n    'upload_content_length' =>\r\n    double(0)\r\n    'starttransfer_time' =>\r\n    double(0.004889)\r\n    'redirect_time' =>\r\n    double(0)\r\n    'redirect_url' =>\r\n    string(0) \"\"\r\n    'primary_ip' =>\r\n    string(9) \"127.0.0.1\"\r\n    'certinfo' =>\r\n    array(0) {\r\n    }\r\n    'primary_port' =>\r\n    int(9200)\r\n    'local_ip' =>\r\n    string(9) \"127.0.0.1\"\r\n    'local_port' =>\r\n    int(56951)\r\n    'error' =>\r\n    string(0) \"\"\r\n    'errno' =>\r\n    int(0)\r\n  }\r\n  'curl' =>\r\n  array(2) {\r\n    'error' =>\r\n    string(0) \"\"\r\n    'errno' =>\r\n    int(0)\r\n  }\r\n  'effective_url' =>\r\n  string(26) \"http://localhost:9200/rtmp\"\r\n  'headers' =>\r\n  array(2) {\r\n    'Content-Type' =>\r\n    array(1) {\r\n      [0] =>\r\n      string(25) \"text/plain; charset=UTF-8\"\r\n    }\r\n    'Content-Length' =>\r\n    array(1) {\r\n      [0] =>\r\n      string(1) \"0\"\r\n    }\r\n  }\r\n  'version' =>\r\n  string(3) \"1.1\"\r\n  'status' =>\r\n  int(404)\r\n  'reason' =>\r\n  string(9) \"Not Found\"\r\n  'body' =>\r\n  NULL\r\n}\r\nPHP Warning:  stream_get_contents() expects parameter 1 to be resource, null given in /opt/ultron/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php on line 202\r\nPHP Stack trace:\r\nPHP   1. {main}() /opt/ultron/console.php:0\r\nPHP   2. Symfony\\Component\\Console\\Application->run() /opt/ultron/console.php:23\r\nPHP   3. Symfony\\Component\\Console\\Application->doRun() /opt/ultron/vendor/symfony/console/Symfony/Component/Console/Application.php:126\r\nPHP   4. Symfony\\Component\\Console\\Application->doRunCommand() /opt/ultron/vendor/symfony/console/Symfony/Component/Console/Application.php:195\r\nPHP   5. Symfony\\Component\\Console\\Command\\Command->run() /opt/ultron/vendor/symfony/console/Symfony/Component/Console/Application.php:874\r\nPHP   6. Ultron\\Console\\Command\\SyncElasticSearch->execute() /opt/ultron/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257\r\nPHP   7. Elasticsearch\\Namespaces\\IndicesNamespace->exists() /opt/ultron/src/Console/Command/SyncElasticSearch.php:46\r\nPHP   8. Elasticsearch\\Namespaces\\BooleanRequestWrapper::performRequest() /opt/ultron/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Namespaces/IndicesNamespace.php:38\r\nPHP   9. Elasticsearch\\Endpoints\\AbstractEndpoint->performRequest() /opt/ultron/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Namespaces/BooleanRequestWrapper.php:32\r\nPHP  10. Elasticsearch\\Transport->performRequest() /opt/ultron/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/AbstractEndpoint.php:80\r\nPHP  11. Elasticsearch\\Connections\\Connection->performRequest() /opt/ultron/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Transport.php:106\r\nPHP  12. Elasticsearch\\Connections\\Connection->Elasticsearch\\Connections\\{closure}() /opt/ultron/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:150\r\nPHP  13. GuzzleHttp\\Ring\\Core::proxy() /opt/ultron/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:227\r\nPHP  14. GuzzleHttp\\Ring\\Future\\CompletedFutureValue->then() /opt/ultron/vendor/guzzlehttp/ringphp/src/Core.php:341\r\nPHP  15. React\\Promise\\FulfilledPromise->then() /opt/ultron/vendor/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php:55\r\nPHP  16. Elasticsearch\\Connections\\Connection->Elasticsearch\\Connections\\{closure}() /opt/ultron/vendor/react/promise/src/FulfilledPromise.php:24\r\nPHP  17. stream_get_contents() /opt/ultron/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:202\r\n```"}}