{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/269","labels_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/269/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/269/events","html_url":"https://github.com/elastic/elasticsearch-js/issues/269","id":105975237,"number":269,"title":"Stable version of node (v4.0.0) failure to create client","user":{"login":"peterwillis","id":653756,"avatar_url":"https://avatars.githubusercontent.com/u/653756?v=3","gravatar_id":"","url":"https://api.github.com/users/peterwillis","html_url":"https://github.com/peterwillis","followers_url":"https://api.github.com/users/peterwillis/followers","following_url":"https://api.github.com/users/peterwillis/following{/other_user}","gists_url":"https://api.github.com/users/peterwillis/gists{/gist_id}","starred_url":"https://api.github.com/users/peterwillis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterwillis/subscriptions","organizations_url":"https://api.github.com/users/peterwillis/orgs","repos_url":"https://api.github.com/users/peterwillis/repos","events_url":"https://api.github.com/users/peterwillis/events{/privacy}","received_events_url":"https://api.github.com/users/peterwillis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-11T09:26:47Z","updated_at":"2015-09-11T19:06:19Z","closed_at":"2015-09-11T19:06:19Z","body":"```javascript\r\nnew elasticsearch.Client({\r\n  host: 'http://localhost:9200'\r\n});\r\n```\r\n\r\nFails with error:\r\n\r\n```shell\r\nRangeError: Maximum call stack size exceeded\r\n   at Log.listenerCount (/Users/pete/Projects/bbg/node_modules/elasticsearch/src/lib/log.js:65:40)\r\n   at Function.EventEmitter.listenerCount (events.js:399:20)\r\n   at Log.listenerCount (/Users/pete/Projects/bbg/node_modules/elasticsearch/src/lib/log.js:68:25)\r\n   at Function.EventEmitter.listenerCount (events.js:399:20)\r\n   at Log.listenerCount (/Users/pete/Projects/bbg/node_modules/elasticsearch/src/lib/log.js:68:25)\r\n   at Function.EventEmitter.listenerCount (events.js:399:20)\r\n   at Log.listenerCount (/Users/pete/Projects/bbg/node_modules/elasticsearch/src/lib/log.js:68:25)\r\n   at Function.EventEmitter.listenerCount (events.js:399:20)\r\n   at Log.listenerCount (/Users/pete/Projects/bbg/node_modules/elasticsearch/src/lib/log.js:68:25)\r\n   at Function.EventEmitter.listenerCount (events.js:399:20)\r\n   at Log.listenerCount (/Users/pete/Projects/bbg/node_modules/elasticsearch/src/lib/log.js:68:25)\r\n   at Function.EventEmitter.listenerCount (events.js:399:20)\r\n   at Log.listenerCount (/Users/pete/Projects/bbg/node_modules/elasticsearch/src/lib/log.js:68:25)\r\n   at Function.EventEmitter.listenerCount (events.js:399:20)\r\n   at Log.listenerCount (/Users/pete/Projects/bbg/node_modules/elasticsearch/src/lib/log.js:68:25)\r\n   at Function.EventEmitter.listenerCount (events.js:399:20)\r\n   at Log.listenerCount (/Users/pete/Projects/bbg/node_modules/elasticsearch/src/lib/log.js:68:25)\r\n   at Function.EventEmitter.listenerCount (events.js:399:20)\r\n   at Log.listenerCount (/Users/pete/Projects/bbg/node_modules/elasticsearch/src/lib/log.js:68:25)\r\n   at Function.EventEmitter.listenerCount (events.js:399:20)\r\n   at Log.listenerCount (/Users/pete/Projects/bbg/node_modules/elasticsearch/src/lib/log.js:68:25)\r\n   at Function.EventEmitter.listenerCount (events.js:399:20)\r\n```\r\n\r\nThis happens on the first call to ```log.info``` in connection_pool.js line 276:\r\n\r\n```javascript\r\nthis.log.info('Adding connection to', connection.id);\r\n```"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/comments/139633065","html_url":"https://github.com/elastic/elasticsearch-js/issues/269#issuecomment-139633065","issue_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/269","id":139633065,"user":{"login":"spalger","id":1329312,"avatar_url":"https://avatars.githubusercontent.com/u/1329312?v=3","gravatar_id":"","url":"https://api.github.com/users/spalger","html_url":"https://github.com/spalger","followers_url":"https://api.github.com/users/spalger/followers","following_url":"https://api.github.com/users/spalger/following{/other_user}","gists_url":"https://api.github.com/users/spalger/gists{/gist_id}","starred_url":"https://api.github.com/users/spalger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spalger/subscriptions","organizations_url":"https://api.github.com/users/spalger/orgs","repos_url":"https://api.github.com/users/spalger/repos","events_url":"https://api.github.com/users/spalger/events{/privacy}","received_events_url":"https://api.github.com/users/spalger/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T19:06:19Z","updated_at":"2015-09-11T19:06:19Z","body":"Duplicate of https://github.com/elastic/elasticsearch-js/issues/265"}}