jensej Posted November 27, 2016 Report Share Posted November 27, 2016 (edited) Hello.What I Sholud do when I have this error : Couldn't get received items: Error: ETIMEDOUTI have big problem with this error because I can't ADD recived items to database.Error happens sometimes, not every time.Could someone have any ideas. Edited November 27, 2016 by jensej Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted November 27, 2016 Report Share Posted November 27, 2016 You should try again. Quote Link to comment Share on other sites More sharing options...
jensej Posted November 27, 2016 Author Report Share Posted November 27, 2016 You should try again.How do this in this event? manager.on('sentOfferChanged', function(offer, oldState) { offer.getReceivedItems(function(err, items) { }); }); Quote Link to comment Share on other sites More sharing options...
kaikash Posted November 28, 2016 Report Share Posted November 28, 2016 You should make function and call it again when it fails. manager.on('sentOfferChanged', function(offer, oldState) { if(offer.state == 3) { handleNewItems(offer); }}); var handleNewItems = function(offer) { offer.getReceivedItems(function(err, items) { if(err) return handleNewItems(offer); // code });}; Also, there could be a problem because cookies expires. Quote Link to comment Share on other sites More sharing options...
jensej Posted November 28, 2016 Author Report Share Posted November 28, 2016 You should make function and call it again when it fails. manager.on('sentOfferChanged', function(offer, oldState) { if(offer.state == 3) { handleNewItems(offer); }}); var handleNewItems = function(offer) { offer.getReceivedItems(function(err, items) { if(err) return handleNewItems(offer); // code });}; Also, there could be a problem because cookies expires.Thanks for Your answer.Could You tell me, how I should repair COOKIE, when cookies expires.Using steamcommunity? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted November 28, 2016 Report Share Posted November 28, 2016 Log in again. Quote Link to comment Share on other sites More sharing options...
jensej Posted November 28, 2016 Author Report Share Posted November 28, 2016 (edited) Log in again.it's weird because I have sth like this before: setInterval(function(){ steam.loggedIn(function(err, loggedIn, familyView) { if(loggedIn == false) { process.exit(1); } });}, 300000); CRON checks the bot DOES work, if not he run script.And an error exists. (with this code too) Edited November 28, 2016 by jensej Quote Link to comment Share on other sites More sharing options...
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.