{"action":"closed","issue":{"url":"https://api.github.com/repos/fguillot/JsonRPC/issues/25","labels_url":"https://api.github.com/repos/fguillot/JsonRPC/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/fguillot/JsonRPC/issues/25/comments","events_url":"https://api.github.com/repos/fguillot/JsonRPC/issues/25/events","html_url":"https://github.com/fguillot/JsonRPC/issues/25","id":66821440,"number":25,"title":"Handling connection errors in Client","user":{"login":"monogatari42","id":5429579,"avatar_url":"https://avatars.githubusercontent.com/u/5429579?v=3","gravatar_id":"","url":"https://api.github.com/users/monogatari42","html_url":"https://github.com/monogatari42","followers_url":"https://api.github.com/users/monogatari42/followers","following_url":"https://api.github.com/users/monogatari42/following{/other_user}","gists_url":"https://api.github.com/users/monogatari42/gists{/gist_id}","starred_url":"https://api.github.com/users/monogatari42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monogatari42/subscriptions","organizations_url":"https://api.github.com/users/monogatari42/orgs","repos_url":"https://api.github.com/users/monogatari42/repos","events_url":"https://api.github.com/users/monogatari42/events{/privacy}","received_events_url":"https://api.github.com/users/monogatari42/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-07T08:24:26Z","updated_at":"2015-05-20T15:09:30Z","closed_at":"2015-05-20T15:09:30Z","body":"Hi.\r\nI think it's a good idea to check the error that curl returns and throw an exception.\r\n```php\r\nif (curl_errno($ch)) {\r\n    throw new \\Exception(curl_error($ch));\r\n}\r\n```\r\nFor example if name resolving doesn't work there will be null at the end. It's hard to track what caused this null."}}