{"action":"created","issue":{"url":"https://api.github.com/repos/noodlefrenzy/node-amqp10/issues/146","labels_url":"https://api.github.com/repos/noodlefrenzy/node-amqp10/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/noodlefrenzy/node-amqp10/issues/146/comments","events_url":"https://api.github.com/repos/noodlefrenzy/node-amqp10/issues/146/events","html_url":"https://github.com/noodlefrenzy/node-amqp10/issues/146","id":99422463,"number":146,"title":"Receive error on long-lived connections to SB","user":{"login":"jacoscaz","id":3322119,"avatar_url":"https://avatars.githubusercontent.com/u/3322119?v=3","gravatar_id":"","url":"https://api.github.com/users/jacoscaz","html_url":"https://github.com/jacoscaz","followers_url":"https://api.github.com/users/jacoscaz/followers","following_url":"https://api.github.com/users/jacoscaz/following{/other_user}","gists_url":"https://api.github.com/users/jacoscaz/gists{/gist_id}","starred_url":"https://api.github.com/users/jacoscaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacoscaz/subscriptions","organizations_url":"https://api.github.com/users/jacoscaz/orgs","repos_url":"https://api.github.com/users/jacoscaz/repos","events_url":"https://api.github.com/users/jacoscaz/events{/privacy}","received_events_url":"https://api.github.com/users/jacoscaz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2015-08-06T12:16:59Z","updated_at":"2015-11-24T18:51:48Z","closed_at":null,"body":"Hello.\r\n\r\nI've stumbled into the following receive() error:\r\n\r\n```\r\n{\r\n  \"descriptor\":{\r\n    \"buffer\":[0,0,0,0,0,0,0,29],\r\n    \"offset\":0\r\n  },\r\n  \"condition\":{\r\n    \"contents\":\"amqp:illegal-state\"\r\n  },\r\n  \"description\":\"operation: R:ATTACH, state: OpenReceived\"\r\n}\r\n```\r\n\r\nThis happens on connections to SB's queues that are up for days (weeks, sometimes) and handle large amount of messages. Unfortunately, I still haven't found a way to reproduce the issue, no matter how many thousands of messages I send. Even more unfortunately, this only happens in a remote environment that makes it quite hard to debug.\r\n\r\nI am using v1.0.3 and a custom policy that throttles links according to the state of the system. Any idea of what might be causing this?\r\n\r\nCheers."},"comment":{"url":"https://api.github.com/repos/noodlefrenzy/node-amqp10/issues/comments/159370580","html_url":"https://github.com/noodlefrenzy/node-amqp10/issues/146#issuecomment-159370580","issue_url":"https://api.github.com/repos/noodlefrenzy/node-amqp10/issues/146","id":159370580,"user":{"login":"jacoscaz","id":3322119,"avatar_url":"https://avatars.githubusercontent.com/u/3322119?v=3","gravatar_id":"","url":"https://api.github.com/users/jacoscaz","html_url":"https://github.com/jacoscaz","followers_url":"https://api.github.com/users/jacoscaz/followers","following_url":"https://api.github.com/users/jacoscaz/following{/other_user}","gists_url":"https://api.github.com/users/jacoscaz/gists{/gist_id}","starred_url":"https://api.github.com/users/jacoscaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacoscaz/subscriptions","organizations_url":"https://api.github.com/users/jacoscaz/orgs","repos_url":"https://api.github.com/users/jacoscaz/repos","events_url":"https://api.github.com/users/jacoscaz/events{/privacy}","received_events_url":"https://api.github.com/users/jacoscaz/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T18:51:48Z","updated_at":"2015-11-24T18:51:48Z","body":"Hello @noodlefrenzy.\r\n\r\nThank you for getting back at me so quickly. Ok, I understand about the networking issue. Will tell the team. Yes, the credentials are still the same. \r\n\r\n> 1) Would you be willing to run in \"debug mode\" (export DEBUG=amqp*)?\r\n\r\nI can try. It'd help if I had a word or a string to look for in the logs. Is there a specific pattern I can work with?\r\n\r\n2) Would you be willing to take a \"point release\" upgrade (e.g. 1.0.3 to 1.0.4) if we were to try and selectively pull some of our V2 bug-fixes \"back in time\"?\r\n\r\nI'd be more than willing to but I am afraid I do not have the time to do so on my schedule. However, it looks like I'll be able to work on V2 in a week or so. Fingers crossed.\r\n\r\nCheers.\r\n\r\n\r\n\r\n"}}