{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-ruby/issues/127","labels_url":"https://api.github.com/repos/elastic/elasticsearch-ruby/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-ruby/issues/127/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-ruby/issues/127/events","html_url":"https://github.com/elastic/elasticsearch-ruby/issues/127","id":54562011,"number":127,"title":"Can't rescue exception when connection pool is depleted","user":{"login":"jlecour","id":5142,"avatar_url":"https://avatars.githubusercontent.com/u/5142?v=3","gravatar_id":"","url":"https://api.github.com/users/jlecour","html_url":"https://github.com/jlecour","followers_url":"https://api.github.com/users/jlecour/followers","following_url":"https://api.github.com/users/jlecour/following{/other_user}","gists_url":"https://api.github.com/users/jlecour/gists{/gist_id}","starred_url":"https://api.github.com/users/jlecour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlecour/subscriptions","organizations_url":"https://api.github.com/users/jlecour/orgs","repos_url":"https://api.github.com/users/jlecour/repos","events_url":"https://api.github.com/users/jlecour/events{/privacy}","received_events_url":"https://api.github.com/users/jlecour/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch-ruby/labels/waiting","name":"waiting","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-16T10:44:25Z","updated_at":"2015-05-20T16:28:17Z","closed_at":"2015-05-20T16:28:17Z","body":"Hi,\r\n\r\nI was messing with the connection selector and I've found an issue.\r\n\r\nIn [elasticsearch/transport/transport/base.rb:179](https://github.com/elasticsearch/elasticsearch-ruby/blob/master/elasticsearch-transport/lib/elasticsearch/transport/transport/base.rb#L179) if `get_connection` can't return a connection, an exception is raised.\r\n\r\nLater, [elasticsearch/transport/transport/base.rb:214](https://github.com/elasticsearch/elasticsearch-ruby/blob/master/elasticsearch-transport/lib/elasticsearch/transport/transport/base.rb#L214), a message is logged, but `connection.host.inspect` can't happen because connection is `nil`"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-ruby/issues/comments/103948316","html_url":"https://github.com/elastic/elasticsearch-ruby/issues/127#issuecomment-103948316","issue_url":"https://api.github.com/repos/elastic/elasticsearch-ruby/issues/127","id":103948316,"user":{"login":"karmi","id":4790,"avatar_url":"https://avatars.githubusercontent.com/u/4790?v=3","gravatar_id":"","url":"https://api.github.com/users/karmi","html_url":"https://github.com/karmi","followers_url":"https://api.github.com/users/karmi/followers","following_url":"https://api.github.com/users/karmi/following{/other_user}","gists_url":"https://api.github.com/users/karmi/gists{/gist_id}","starred_url":"https://api.github.com/users/karmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karmi/subscriptions","organizations_url":"https://api.github.com/users/karmi/orgs","repos_url":"https://api.github.com/users/karmi/repos","events_url":"https://api.github.com/users/karmi/events{/privacy}","received_events_url":"https://api.github.com/users/karmi/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T16:28:17Z","updated_at":"2015-05-20T16:28:17Z","body":"Closing this for now, I believe the bug was fixed, please reopen or open a new issue if there's still a problem!"}}