{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-iot-sdks/issues/604","repository_url":"https://api.github.com/repos/Azure/azure-iot-sdks","labels_url":"https://api.github.com/repos/Azure/azure-iot-sdks/issues/604/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-iot-sdks/issues/604/comments","events_url":"https://api.github.com/repos/Azure/azure-iot-sdks/issues/604/events","html_url":"https://github.com/Azure/azure-iot-sdks/issues/604","id":158311085,"number":604,"title":"Node.js - AMQP - Does not reconnect after a network break.","user":{"login":"edyrli","id":17122941,"avatar_url":"https://avatars.githubusercontent.com/u/17122941?v=3","gravatar_id":"","url":"https://api.github.com/users/edyrli","html_url":"https://github.com/edyrli","followers_url":"https://api.github.com/users/edyrli/followers","following_url":"https://api.github.com/users/edyrli/following{/other_user}","gists_url":"https://api.github.com/users/edyrli/gists{/gist_id}","starred_url":"https://api.github.com/users/edyrli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edyrli/subscriptions","organizations_url":"https://api.github.com/users/edyrli/orgs","repos_url":"https://api.github.com/users/edyrli/repos","events_url":"https://api.github.com/users/edyrli/events{/privacy}","received_events_url":"https://api.github.com/users/edyrli/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Azure/azure-iot-sdks/labels/investigation-required","name":"investigation-required","color":"d93f0b"}],"state":"open","locked":false,"assignee":{"login":"pierreca","id":4979572,"avatar_url":"https://avatars.githubusercontent.com/u/4979572?v=3","gravatar_id":"","url":"https://api.github.com/users/pierreca","html_url":"https://github.com/pierreca","followers_url":"https://api.github.com/users/pierreca/followers","following_url":"https://api.github.com/users/pierreca/following{/other_user}","gists_url":"https://api.github.com/users/pierreca/gists{/gist_id}","starred_url":"https://api.github.com/users/pierreca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierreca/subscriptions","organizations_url":"https://api.github.com/users/pierreca/orgs","repos_url":"https://api.github.com/users/pierreca/repos","events_url":"https://api.github.com/users/pierreca/events{/privacy}","received_events_url":"https://api.github.com/users/pierreca/received_events","type":"User","site_admin":false},"assignees":[{"login":"pierreca","id":4979572,"avatar_url":"https://avatars.githubusercontent.com/u/4979572?v=3","gravatar_id":"","url":"https://api.github.com/users/pierreca","html_url":"https://github.com/pierreca","followers_url":"https://api.github.com/users/pierreca/followers","following_url":"https://api.github.com/users/pierreca/following{/other_user}","gists_url":"https://api.github.com/users/pierreca/gists{/gist_id}","starred_url":"https://api.github.com/users/pierreca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierreca/subscriptions","organizations_url":"https://api.github.com/users/pierreca/orgs","repos_url":"https://api.github.com/users/pierreca/repos","events_url":"https://api.github.com/users/pierreca/events{/privacy}","received_events_url":"https://api.github.com/users/pierreca/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-06-03T07:54:22Z","updated_at":"2016-08-24T12:10:26Z","closed_at":null,"body":"When running the SimulatedDevice.js on a linux machine. azure iot will not reconnect after i remove the network connection and reconnets it. It reconnets ok if i use HTTP (azure-iot-device-http) protocol.\r\nIt still reconnects when the SDK renews the token.\r\n\r\nFrom visual studio code i get the following errors:\r\nFri, 03 Jun 2016 07:13:34 GMT amqp10:connection Error from socket: Error: read ECONNRESET\r\nFri, 03 Jun 2016 07:13:34 GMT amqp10:client connection error:  { [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }\r\nFri, 03 Jun 2016 07:13:34 GMT amqp-common Error received from node-amqp10: read ECONNRESET\r\nFri, 03 Jun 2016 07:13:34 GMT amqp10:client disconnected\r\nFri, 03 Jun 2016 07:13:34 GMT amqp10:link Force-detach for /devices/000000001f2d1e93/messages/devicebound_1ceb6d05-160f-40f0-aabe-c08659e95242. Current state: attached\r\nFri, 03 Jun 2016 07:13:34 GMT amqp10:link /devices/000000001f2d1e93/messages/devicebound_1ceb6d05-160f-40f0-aabe-c08659e95242:0: Transitioning from ATTACHED to DETACHED due to forceDetach\r\nFri, 03 Jun 2016 07:13:34 GMT amqp10:connection Transitioning from OPENED to DISCONNECTED due to error\r\n\r\nMore details in the attached log file.\r\n[DebugLog.txt](https://github.com/Azure/azure-iot-sdks/files/297147/DebugLog.txt)\r\n\r\n\r\nAny suggestions what to do? Any other ways to manually initiate a re-connect?\r\nI am going to use this code as a base for further development and needs to get this sorted."},"comment":{"url":"https://api.github.com/repos/Azure/azure-iot-sdks/issues/comments/242040642","html_url":"https://github.com/Azure/azure-iot-sdks/issues/604#issuecomment-242040642","issue_url":"https://api.github.com/repos/Azure/azure-iot-sdks/issues/604","id":242040642,"user":{"login":"jtjk","id":3829868,"avatar_url":"https://avatars.githubusercontent.com/u/3829868?v=3","gravatar_id":"","url":"https://api.github.com/users/jtjk","html_url":"https://github.com/jtjk","followers_url":"https://api.github.com/users/jtjk/followers","following_url":"https://api.github.com/users/jtjk/following{/other_user}","gists_url":"https://api.github.com/users/jtjk/gists{/gist_id}","starred_url":"https://api.github.com/users/jtjk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtjk/subscriptions","organizations_url":"https://api.github.com/users/jtjk/orgs","repos_url":"https://api.github.com/users/jtjk/repos","events_url":"https://api.github.com/users/jtjk/events{/privacy}","received_events_url":"https://api.github.com/users/jtjk/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T12:10:26Z","updated_at":"2016-08-24T12:10:26Z","body":"Yes, I have also problems with getting the events. Often If I connect and get disconnected, I might be getting the first disconnect event. But after reconnecting, I am not getting these events again. I tried to debug it but it looked very complex way to handle when to add new event listeners and when not. I guess somebody should refactor it little bit."}}
{"actor":{"display_login":"jtjk"}}