Jump to content
McKay Development

getSteamUser throwing error


harsh
 Share

Recommended Posts

whats wrong , i am running it through list of steamids.

Here is my code:-

function checkVacID(){

    friend_list = friends;

    friend_list.forEach(function(key, index){ 
        community.getSteamUser(key, (err, user) => {
                if(err) { 
                    console.log("there was an problem to get the steam user!"+err) 
                    return; 
                }
                else
                {
                    if(user.vacBanned == true)
                    {
                        console.log(`${user.name} VAC Banned Profile`);  
                    }
                }
            });
    });
}

 

Link to comment
Share on other sites

Posted (edited)

Its flooding with error in console

 

there was an problem to get the steam user!
there was an problem to get the steam user!
there was an problem to get the steam user!
there was an problem to get the steam user!
there was an problem to get the steam user!
there was an problem to get the steam user!



Edit: when i print err it shows this
 

Error: The specified profile could not be found.

 

Edited by harsh
update
Link to comment
Share on other sites

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...
 Share

×
×
  • Create New...