spock Posted April 13, 2016 Report Posted April 13, 2016 (edited) I have this code in my offers offers.on('sentOfferChanged', function(offer, oldState) { logger.log("Offer #" + offer.id + " changed: " + TradeOfferManager.getStateName(oldState) + " -> " + TradeOfferManager.getStateName(offer.state)); if (offer.state == TradeOfferManager.ETradeOfferState.Accepted) { offer.getReceivedItems(function(err, items) { if (err) { console.log("Couldn't get received items: " + err); } else { var names = items.map(function(item) { return item.name; }); logger.log("Received: " + names.join(', ')); } }); } }); As of this morning i'm not getting an event when I confirm my trade via my mobile app even though the trade was accepted and the items are now in the bots inventory. Sometimes I will get an err eventually and i'll get this Couldn't get received items: Error: Steam returned unsuccessful response However, most trades I wont get anything. Is this a steam issue? edit: here's my manager setting var offers = new TradeOfferManager({ steam: client, domain: config.domain, language: "en", cancelTime: 300000 }); I assume polling is automatic? Edited April 13, 2016 by spock Quote
spock Posted April 13, 2016 Author Report Posted April 13, 2016 (edited) "steam-tradeoffer-manager": "^1.22.0", "steam-user": "~1.13.0", I upgrade both steam trade offer manager and steam user to the latest. Still not exactly working. edit: I updated my OP with some more info Edited April 13, 2016 by spock Quote
Dr. McKay Posted April 14, 2016 Report Posted April 14, 2016 Polling is automatic, yes. It polls every 30 seconds. Can you add this and see what the output is? offers.on('debug', console.log); Quote
spock Posted April 14, 2016 Author Report Posted April 14, 2016 (edited) Here's the output after I do trade.send() info: Trade offer sent successfullythen after I confirmed via mobile for the next few minutes I just see this: Doing trade offer poll since 1460598432 Doing trade offer poll since 1460608495 Doing trade offer poll since 1460608543 Doing trade offer poll since 1 (full update) Doing trade offer poll since 1460608543 Doing trade offer poll since 1460608543 Edited April 14, 2016 by spock Quote
Dr. McKay Posted April 14, 2016 Report Posted April 14, 2016 You're absolutely sure that sentOfferChanged isn't being emitted? Is pollFailure being emitted every time debug is? Quote
spock Posted April 14, 2016 Author Report Posted April 14, 2016 It started emitting this morning again. Not sure what the issue was... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.