Jump to content
McKay Development

Logging into an account twice from the same VPS throws eResult error 26 Revoked


luisisito

Recommended Posts

Hi, I'm trying to build a steam bot everything was going well until I had the need to integrate the bot to two different backends on the same VPS. This means that I have to log in twice with the same public IP, I was reading about it and supposedly this can be done without problems by modifying the logonID parameter at each login, however, although I do this when I log in for the second time in the another backend of the same VPS immediately the first session gives me the error "Revoked" which is 26 of eResult. I am using version 5.0.1 of node-steam-user and here is the simple code that repeats the problem:

const SteamUser = require('steam-user');
const client = new SteamUser();

const username = 'your_steam_username';
const password = 'your_steam_password';
const authCode = 'xxxxx';
const ONLINE_INTERVAL = 5 * 60 * 1000;

client.logOn({
  accountName: username,
  password: password,
  authCode,
  logonID: Math.random() * 100000000,
});

client.on('loggedOn', () => {
  console.log('Logged into Steam');
  setInterval(() => {
    client.setPersona(SteamUser.EPersonaState.Online);
  }, ONLINE_INTERVAL);
});

client.on('error', (err) => {
  console.log(`Error: ${err.message} ${err.eresult}`);
  //OUTPUT IF I RUN 2ND INSTANCE:
  //Error: Revoked 26
});


Thanks in advance for any solution.

Edited by luisisito
Link to comment
Share on other sites

Ok, I removed this code in one backend

setInterval(() => {
    client.setPersona(SteamUser.EPersonaState.Online);
  }, ONLINE_INTERVAL);

And now is working fine. It's weird why setting the status in both instances throws Revoked. Anyways my problem is solved thanks for your time and I apologize for this simple issue.

Edited by luisisito
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...
×
×
  • Create New...