{"action":"created","issue":{"url":"https://api.github.com/repos/alanxz/rabbitmq-c/issues/236","labels_url":"https://api.github.com/repos/alanxz/rabbitmq-c/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/alanxz/rabbitmq-c/issues/236/comments","events_url":"https://api.github.com/repos/alanxz/rabbitmq-c/issues/236/events","html_url":"https://github.com/alanxz/rabbitmq-c/issues/236","id":54262487,"number":236,"title":"Provide more detail on connection errors","user":{"login":"autarch","id":50729,"avatar_url":"https://avatars.githubusercontent.com/u/50729?v=3","gravatar_id":"","url":"https://api.github.com/users/autarch","html_url":"https://github.com/autarch","followers_url":"https://api.github.com/users/autarch/followers","following_url":"https://api.github.com/users/autarch/following{/other_user}","gists_url":"https://api.github.com/users/autarch/gists{/gist_id}","starred_url":"https://api.github.com/users/autarch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/autarch/subscriptions","organizations_url":"https://api.github.com/users/autarch/orgs","repos_url":"https://api.github.com/users/autarch/repos","events_url":"https://api.github.com/users/autarch/events{/privacy}","received_events_url":"https://api.github.com/users/autarch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-13T23:14:03Z","updated_at":"2015-01-14T20:12:27Z","closed_at":null,"body":"There are a *lot* of different errors that all result in the same `AMQP_STATUS_SOCKET_ERROR` error code. It'd be nice to have different codes for different errors, and ideally some sort of stringy error that provided more information.\r\n\r\nI'm not sure how best to do that in the constraints of backwards compatibility."},"comment":{"url":"https://api.github.com/repos/alanxz/rabbitmq-c/issues/comments/69982987","html_url":"https://github.com/alanxz/rabbitmq-c/issues/236#issuecomment-69982987","issue_url":"https://api.github.com/repos/alanxz/rabbitmq-c/issues/236","id":69982987,"user":{"login":"autarch","id":50729,"avatar_url":"https://avatars.githubusercontent.com/u/50729?v=3","gravatar_id":"","url":"https://api.github.com/users/autarch","html_url":"https://github.com/autarch","followers_url":"https://api.github.com/users/autarch/followers","following_url":"https://api.github.com/users/autarch/following{/other_user}","gists_url":"https://api.github.com/users/autarch/gists{/gist_id}","starred_url":"https://api.github.com/users/autarch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/autarch/subscriptions","organizations_url":"https://api.github.com/users/autarch/orgs","repos_url":"https://api.github.com/users/autarch/repos","events_url":"https://api.github.com/users/autarch/events{/privacy}","received_events_url":"https://api.github.com/users/autarch/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T20:12:27Z","updated_at":"2015-01-14T20:12:27Z","body":"In my particular case, I did something dumb and managed to pass in \"1\" as the hostname instead of \"localhost\". Figuring out what happened took a lot of time, in part because the error code didn't give me any clues where to look. If I knew `errno` was always set I could have looked at it and maybe gotten some more info."}}