{"action":"created","issue":{"url":"https://api.github.com/repos/andrewda/node-steam-guide/issues/80","repository_url":"https://api.github.com/repos/andrewda/node-steam-guide","labels_url":"https://api.github.com/repos/andrewda/node-steam-guide/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/andrewda/node-steam-guide/issues/80/comments","events_url":"https://api.github.com/repos/andrewda/node-steam-guide/issues/80/events","html_url":"https://github.com/andrewda/node-steam-guide/issues/80","id":306853899,"number":80,"title":"Error: malformed response","user":{"login":"woepertjes","id":36644714,"avatar_url":"https://avatars1.githubusercontent.com/u/36644714?v=4","gravatar_id":"","url":"https://api.github.com/users/woepertjes","html_url":"https://github.com/woepertjes","followers_url":"https://api.github.com/users/woepertjes/followers","following_url":"https://api.github.com/users/woepertjes/following{/other_user}","gists_url":"https://api.github.com/users/woepertjes/gists{/gist_id}","starred_url":"https://api.github.com/users/woepertjes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woepertjes/subscriptions","organizations_url":"https://api.github.com/users/woepertjes/orgs","repos_url":"https://api.github.com/users/woepertjes/repos","events_url":"https://api.github.com/users/woepertjes/events{/privacy}","received_events_url":"https://api.github.com/users/woepertjes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-20T12:57:39Z","updated_at":"2018-03-20T17:31:28Z","closed_at":null,"author_association":"NONE","body":"Tiny bit of background:\r\nI've got multiple bots, B1 to B7.\r\nB1 is the receiving bot shall i say. It's supposed to send a tradeoffer (function seen below), the command works though i get the following error: Error: \"Malformed response\".\r\n\r\nWhat the bot is supposed to do: \r\n\r\n1. Receive command\r\n2. create tradeoffer\r\n3. send tradeoffer\r\n\r\nafter these three steps its supposed to wait till the offer is accepted.\r\n\r\nThe context ID for csgo cases is 2, the appid of csgo is 730. so i dont really know whats causing this problem. the bots are always online and logged in.\r\n\r\n```\r\nfunction tradecases(botid, senderid) {\r\n    var appid = 730;\r\n    var contextid1 = 2;\r\n    \r\n    bots[botid].offers.loadInventory(appid, contextid1, true, (err, myInv) => {\r\n        if (err) {\r\n            logger.error(err);\r\n        } else {\r\n            bots[botid].offers.loadUserInventory(senderid, appid, contextid1, true, (err, theirInv) => {\r\n                if (err) {\r\n                    logger.error(err);\r\n                } else {\r\n                    var theirItem = theirInv\r\n                  bots[botid].offers.offer.addTheirItem(theirInv);\r\n\r\n                  bots[botid].offers.offer.setMessage('This is an automated tradeoffer for all your trading cards. You can change it if you want.');\r\n                  bots[botid].offers.offer.send((err, status) => {\r\n                      if (err) {\r\n                          logger.error(err);\r\n                      } else logger.info('sent offer status: ' + status);\r\n                  });\r\n                }\r\n            });\r\n        }\r\n    });\r\n}\r\n```\r\n\r\nany ideas anyone?"},"comment":{"url":"https://api.github.com/repos/andrewda/node-steam-guide/issues/comments/374687255","html_url":"https://github.com/andrewda/node-steam-guide/issues/80#issuecomment-374687255","issue_url":"https://api.github.com/repos/andrewda/node-steam-guide/issues/80","id":374687255,"user":{"login":"woepertjes","id":36644714,"avatar_url":"https://avatars1.githubusercontent.com/u/36644714?v=4","gravatar_id":"","url":"https://api.github.com/users/woepertjes","html_url":"https://github.com/woepertjes","followers_url":"https://api.github.com/users/woepertjes/followers","following_url":"https://api.github.com/users/woepertjes/following{/other_user}","gists_url":"https://api.github.com/users/woepertjes/gists{/gist_id}","starred_url":"https://api.github.com/users/woepertjes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woepertjes/subscriptions","organizations_url":"https://api.github.com/users/woepertjes/orgs","repos_url":"https://api.github.com/users/woepertjes/repos","events_url":"https://api.github.com/users/woepertjes/events{/privacy}","received_events_url":"https://api.github.com/users/woepertjes/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T17:31:28Z","updated_at":"2018-03-20T17:31:28Z","author_association":"NONE","body":"this is the error im getting:\r\n\r\n`verbose: [B1] Received message from non-botadmin: !test\r\nerror:  Error: Malformed response\r\n    at SteamCommunity.<anonymous> (F:\\va\\node_modules\\steamcommun\r\nity\\components\\users.js:309:15)\r\n    at Request._callback (F:\\va\\node_modules\\steamcommunity\\compo\r\nnents\\http.js:67:15)\r\n    at Request.self.callback (F:\\va\\node_modules\\request\\request.\r\njs:186:22)\r\n    at Request.emit (events.js:180:13)\r\n    at Request.<anonymous> (F:\\va\\node_modules\\request\\request.js\r\n:1163:10)\r\n    at Request.emit (events.js:180:13)\r\n    at IncomingMessage.<anonymous> (F:\\va\\node_modules\\request\\re\r\nquest.js:1085:12)\r\n    at Object.onceWrapper (events.js:272:13)\r\n    at IncomingMessage.emit (events.js:185:15)\r\n    at endReadableNT (_stream_readable.js:1101:12)`\r\n\r\nBot is logging in correctly, senderid is what i think it is (person who sent the command). last but not least i dont see where the error is being thrown. It's possible that im looking over it, my eyes arent what they used to be.\r\n"}}
{"actor":{"display_login":"woepertjes"}}