evancauwenberg Posted June 16, 2016 Report Posted June 16, 2016 Hi there At first thnx for the awesome wrapper around the steam trade offers! I have encountered an issue with creating tradeoffers, accepting works like a charm! When i try to create and offer, add items to it and send, i don't receive any feedback err and status are undefined.If i log the tradeoffer all is set, what am i missing? Thnx in advance! steam.login(logOnOptions, function(err, sessionID, cookies, steamguard) { if (err) { console.log("Steam login fail: " + err.message); process.exit(1); } fs.writeFile('steamguard.txt', steamguard); console.log("Logged into Steam"); manager.setCookies(cookies, function(err) { if (err) { console.log(err); process.exit(1); // Fatal error since we couldn't get our API key return; } console.log("Got API key: " + manager.apiKey); // var inventory = manager.loadUserInventory("*****", 730, 2); // console.log(inventory); var offer = manager.createOffer("****"); offer.addMyItem({"appid": 730, "contextid": 2, "assetid": "6582251698"}); offer.send(function(err, status) { if (err) { console.log("send" + err); } else { console.log("Offer #" + offer.id + " " + status); } console.log(status); console.log('hierheirieirh'); }); }); console.log('testtest'); // Checks and accepts confirmations every 30 seconds steam.startConfirmationChecker(30000, config.identity_secret); }); Quote
Dr. McKay Posted June 16, 2016 Report Posted June 16, 2016 Just to clarify, the callback is firing and err and status are both undefined, not null? What's offer.id? What version are you on? Quote
evancauwenberg Posted June 28, 2016 Author Report Posted June 28, 2016 (edited) Sorry dr. McKay .. i was on holiday i had an oler version derp i'm receiving the following error now:sendError: There was an error sending your trade offer. Please try again later. (26) Thnx in advance! Edited June 28, 2016 by evancauwenberg Quote
evancauwenberg Posted June 28, 2016 Author Report Posted June 28, 2016 (edited) After some googling i have found a link that says the API server is down, will follow the up!https://steamgaug.es/ Edit: have tried several times today, still the same error sendError: There was an error sending your trade offer. Please try again later. (26) Edited June 29, 2016 by evancauwenberg Quote
evancauwenberg Posted June 30, 2016 Author Report Posted June 30, 2016 Omg .. solved used "addMyItem" instead of "addTheirItem" 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.