{"action":"created","issue":{"url":"https://api.github.com/repos/postwait/node-amqp/issues/462","repository_url":"https://api.github.com/repos/postwait/node-amqp","labels_url":"https://api.github.com/repos/postwait/node-amqp/issues/462/labels{/name}","comments_url":"https://api.github.com/repos/postwait/node-amqp/issues/462/comments","events_url":"https://api.github.com/repos/postwait/node-amqp/issues/462/events","html_url":"https://github.com/postwait/node-amqp/issues/462","id":257427248,"node_id":"MDU6SXNzdWUyNTc0MjcyNDg=","number":462,"title":"connection.disconnect() fires the error handler with connection reset","user":{"login":"Gilwyad","id":1919041,"node_id":"MDQ6VXNlcjE5MTkwNDE=","avatar_url":"https://avatars3.githubusercontent.com/u/1919041?v=4","gravatar_id":"","url":"https://api.github.com/users/Gilwyad","html_url":"https://github.com/Gilwyad","followers_url":"https://api.github.com/users/Gilwyad/followers","following_url":"https://api.github.com/users/Gilwyad/following{/other_user}","gists_url":"https://api.github.com/users/Gilwyad/gists{/gist_id}","starred_url":"https://api.github.com/users/Gilwyad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gilwyad/subscriptions","organizations_url":"https://api.github.com/users/Gilwyad/orgs","repos_url":"https://api.github.com/users/Gilwyad/repos","events_url":"https://api.github.com/users/Gilwyad/events{/privacy}","received_events_url":"https://api.github.com/users/Gilwyad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-09-13T15:37:30Z","updated_at":"2018-09-23T16:38:42Z","closed_at":null,"author_association":"NONE","body":"    let connection = amqp.createConnection(...);\r\n    connection.on('ready', function () {\r\n        connection.exchange(...,\r\n                            function () {\r\n                                connection.queue(...,\r\n                                                 function (q, messageCount, consumerCount) {\r\n                                                     connection.disconnect();\r\n                                                 });\r\n                            });\r\n    });\r\n    \r\n    connection.on('error', function(e) {\r\n        console.log(e);\r\n    }\r\n\r\nHow should I cleanly disconnect while also handling errors?"},"comment":{"url":"https://api.github.com/repos/postwait/node-amqp/issues/comments/423829502","html_url":"https://github.com/postwait/node-amqp/issues/462#issuecomment-423829502","issue_url":"https://api.github.com/repos/postwait/node-amqp/issues/462","id":423829502,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzgyOTUwMg==","user":{"login":"soichih","id":923896,"node_id":"MDQ6VXNlcjkyMzg5Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/923896?v=4","gravatar_id":"","url":"https://api.github.com/users/soichih","html_url":"https://github.com/soichih","followers_url":"https://api.github.com/users/soichih/followers","following_url":"https://api.github.com/users/soichih/following{/other_user}","gists_url":"https://api.github.com/users/soichih/gists{/gist_id}","starred_url":"https://api.github.com/users/soichih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soichih/subscriptions","organizations_url":"https://api.github.com/users/soichih/orgs","repos_url":"https://api.github.com/users/soichih/repos","events_url":"https://api.github.com/users/soichih/events{/privacy}","received_events_url":"https://api.github.com/users/soichih/received_events","type":"User","site_admin":false},"created_at":"2018-09-23T16:38:42Z","updated_at":"2018-09-23T16:38:42Z","author_association":"NONE","body":"Is there any update on this issue? I am still hit by this issue. (I am just killing the App manually at the end)"}}
{"actor":{"display_login":"soichih"}}