Jump to content
McKay Development

tbo0

Member
  • Posts

    5
  • Joined

  • Last visited

Posts posted by tbo0

  1. Hi,

     

    when Steam prompts me for a SteamGuard code and the steamGuard event is fired, It keeps on saying that the last provided code is wrong and the event is fired again and again. I set the 'promptSteamGuardCode' to false. Any idea why might this be? Your help is much appreciated.

    	client.on('steamGuard', function(domain, callback, lastCodeWrong) {
    	    console.log("SteamGuardCode will be provided in 5 seconds!");
    	    setTimeout(function() {
    	    	var twoFactorCode = SteamTotp.getAuthCode(logonOptions.twoFactorCode);
    	    	console.log(lastCodeWrong); // true
    		return callback(twoFactorCode);
    		}, 5000);
    	});
    

    Regards,

    tbo

  2. Are you logged in?

    Yes, this piece of code gets called immediately after i've logged on with the account. The account which creates this problem is seldom used, I had no problem with accounts which are frequently in use.

     

     

    Edit:

    I may have misunderstood the question. I'm logged in with the account whose inventory context I'm trying to get, but not logged in with the SteamCommunity instance. Is it required to use this method? If so, I've only had problems with a few Steam accounts so far.

     

    Edit: It looks like logging in with the steamcommunity instance solved the problem, thank you for your time.

  3. Hi,
     
    When I'm calling getInventoryContexts on a CSteamUser object, i get the Malformed response error message. I had no similiar problem before, but happens consantly on this new account i'm testing it with.

    community.getSteamUser(id, function(err, user){
      ...
    
      user.getInventoryContexts(function(err, apps){
        if (err) return next(err); // Error gets thrown here
        ...
    

    The account is not limited for sure and I'm using steamcommunnity 3.30.6. Any suggestions will be greatly appreciated.

     

    Thanks in advance.

×
×
  • Create New...