{"action":"created","issue":{"url":"https://api.github.com/repos/DoctorMcKay/node-steamcommunity/issues/27","labels_url":"https://api.github.com/repos/DoctorMcKay/node-steamcommunity/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/DoctorMcKay/node-steamcommunity/issues/27/comments","events_url":"https://api.github.com/repos/DoctorMcKay/node-steamcommunity/issues/27/events","html_url":"https://github.com/DoctorMcKay/node-steamcommunity/issues/27","id":120455904,"number":27,"title":"getConfirmations gives [] even if there are \"Awaiting Mobile Confirmation\" trades","user":{"login":"lopataz","id":16140331,"avatar_url":"https://avatars.githubusercontent.com/u/16140331?v=3","gravatar_id":"","url":"https://api.github.com/users/lopataz","html_url":"https://github.com/lopataz","followers_url":"https://api.github.com/users/lopataz/followers","following_url":"https://api.github.com/users/lopataz/following{/other_user}","gists_url":"https://api.github.com/users/lopataz/gists{/gist_id}","starred_url":"https://api.github.com/users/lopataz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lopataz/subscriptions","organizations_url":"https://api.github.com/users/lopataz/orgs","repos_url":"https://api.github.com/users/lopataz/repos","events_url":"https://api.github.com/users/lopataz/events{/privacy}","received_events_url":"https://api.github.com/users/lopataz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-12-04T18:13:12Z","updated_at":"2015-12-05T03:02:39Z","closed_at":null,"body":"So, I implemented getConfirmations as follow:\r\n\r\n```javascript\r\nfunction getconf(){\r\n               \r\n var timekey=Math.round(Date.now() / 1000);\r\n\t\tvar confirmationkey = SteamTotp.getConfirmationKey(identitySecret, timekey, \"conf\");\r\n\t\t\r\n\t\tcommunity.getConfirmations(timekey, confirmationkey, function(err2,confirmations){\r\n\t\t\tif(err2){\r\n\t\t\t\tconsole.log(err2);\r\n\t\t\t}else{\r\n\t\t\t\tconsole.log(confirmations); //Gives '[]' even if there are waiting trades\r\n\t\t\t\tconfirmations.forEach(function(conf,index,array){\r\n\t\t\t\t\tsetTimeout(function(conf){\r\n\t\t\t\t\t\tvar timekey2=Math.round(Date.now() / 1000);\r\n\t\t\t\t\t\tvar confirmationkey2 = SteamTotp.getConfirmationKey(identitySecret, timekey2, \"allow\");\r\n\r\n      community.respondToConfirmation(conf.id,conf.key,timekey2,confirmationkey2,true,function(err){\r\n\t\t\t\t\t\t\tconsole.log(err);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t},index*1500,conf);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n}\r\n```\r\nI call getconf every 40 seconds\r\nBut when I send some offers sometimes I don't get the confirmations for it.\r\nIt does it very frequently! and the confirmations never appears, but the next confirmation appear ometimes.\r\nHere is the screenshot of the sent offer : https://gyazo.com/d1a842e92af53817e2aa939498d0a162\r\nHere is the screenshot of the community.getConfirmations response (empty array []): https://gyazo.com/2a41c7211a53d3971341bea3cdd1ab04\r\n"},"comment":{"url":"https://api.github.com/repos/DoctorMcKay/node-steamcommunity/issues/comments/162134649","html_url":"https://github.com/DoctorMcKay/node-steamcommunity/issues/27#issuecomment-162134649","issue_url":"https://api.github.com/repos/DoctorMcKay/node-steamcommunity/issues/27","id":162134649,"user":{"login":"Lagg","id":2509793,"avatar_url":"https://avatars.githubusercontent.com/u/2509793?v=3","gravatar_id":"","url":"https://api.github.com/users/Lagg","html_url":"https://github.com/Lagg","followers_url":"https://api.github.com/users/Lagg/followers","following_url":"https://api.github.com/users/Lagg/following{/other_user}","gists_url":"https://api.github.com/users/Lagg/gists{/gist_id}","starred_url":"https://api.github.com/users/Lagg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lagg/subscriptions","organizations_url":"https://api.github.com/users/Lagg/orgs","repos_url":"https://api.github.com/users/Lagg/repos","events_url":"https://api.github.com/users/Lagg/events{/privacy}","received_events_url":"https://api.github.com/users/Lagg/received_events","type":"User","site_admin":false},"created_at":"2015-12-05T03:02:39Z","updated_at":"2015-12-05T03:02:39Z","body":"Alright so it will emit newConfirmation one more time if I call checkConfirmations.  Not exactly in the spirit of clean polling. But I'm busy debugging my own stuff right now. Wish I could help more :("}}