Jump to content
McKay Development

Recommended Posts

Posted (edited)

Hello.

What I Sholud do when I have this error : Couldn't get received items: Error: ETIMEDOUT

I 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 by jensej
Posted

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.

Posted

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?

Posted (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 by jensej

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...