{"action":"created","issue":{"url":"https://api.github.com/repos/DoctorMcKay/node-steam-tradeoffer-manager/issues/148","repository_url":"https://api.github.com/repos/DoctorMcKay/node-steam-tradeoffer-manager","labels_url":"https://api.github.com/repos/DoctorMcKay/node-steam-tradeoffer-manager/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/DoctorMcKay/node-steam-tradeoffer-manager/issues/148/comments","events_url":"https://api.github.com/repos/DoctorMcKay/node-steam-tradeoffer-manager/issues/148/events","html_url":"https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/issues/148","id":159832127,"number":148,"title":"Malformed Response","user":{"login":"OfficialWilson","id":6631206,"avatar_url":"https://avatars.githubusercontent.com/u/6631206?v=3","gravatar_id":"","url":"https://api.github.com/users/OfficialWilson","html_url":"https://github.com/OfficialWilson","followers_url":"https://api.github.com/users/OfficialWilson/followers","following_url":"https://api.github.com/users/OfficialWilson/following{/other_user}","gists_url":"https://api.github.com/users/OfficialWilson/gists{/gist_id}","starred_url":"https://api.github.com/users/OfficialWilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OfficialWilson/subscriptions","organizations_url":"https://api.github.com/users/OfficialWilson/orgs","repos_url":"https://api.github.com/users/OfficialWilson/repos","events_url":"https://api.github.com/users/OfficialWilson/events{/privacy}","received_events_url":"https://api.github.com/users/OfficialWilson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-12T15:12:05Z","updated_at":"2016-06-12T17:38:16Z","closed_at":null,"body":"Hi,\r\n\r\nI got a bot today, and it errors saying Malformed response? Why.\r\n\r\n```\r\nfunction updateStock() {\r\n  manager.loadInventory(730, 2, true, function(err, inv) {\r\n    if (err) {\r\n      debug(\"Error loading inventory! \" + err.message);\r\n      debug(\"(You can ignore this error, I will automatically try again in a few minutes.)\");\r\n    } else {\r\n      var count = 0;\r\n      for (var i = 0; i < inv.length; i++) {\r\n        var item = inv[i];\r\n        if (acceptedCSKeys.inArray(item.market_name)) {\r\n          count++;\r\n        }\r\n      }\r\n      stock = count;\r\n    }\r\n  });\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/DoctorMcKay/node-steam-tradeoffer-manager/issues/comments/225450104","html_url":"https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/issues/148#issuecomment-225450104","issue_url":"https://api.github.com/repos/DoctorMcKay/node-steam-tradeoffer-manager/issues/148","id":225450104,"user":{"login":"DoctorMcKay","id":1538723,"avatar_url":"https://avatars.githubusercontent.com/u/1538723?v=3","gravatar_id":"","url":"https://api.github.com/users/DoctorMcKay","html_url":"https://github.com/DoctorMcKay","followers_url":"https://api.github.com/users/DoctorMcKay/followers","following_url":"https://api.github.com/users/DoctorMcKay/following{/other_user}","gists_url":"https://api.github.com/users/DoctorMcKay/gists{/gist_id}","starred_url":"https://api.github.com/users/DoctorMcKay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoctorMcKay/subscriptions","organizations_url":"https://api.github.com/users/DoctorMcKay/orgs","repos_url":"https://api.github.com/users/DoctorMcKay/repos","events_url":"https://api.github.com/users/DoctorMcKay/events{/privacy}","received_events_url":"https://api.github.com/users/DoctorMcKay/received_events","type":"User","site_admin":false},"created_at":"2016-06-12T17:38:15Z","updated_at":"2016-06-12T17:38:15Z","body":"Are you logged in?"}}
{"actor":{"display_login":"DoctorMcKay"}}