Jump to content
McKay Development

Recommended Posts

Posted

I am trying to connect my bots with proxies but all i get is Auth Error with community module,
while it logs successfully with client module but i don't know if the proxy works or ignored.
@Dr. McKay Could you check if iam missing something?
 

// Modules
const request = require('request');
const Steam = require('steam-client');
const SteamUser = require('steam-user');
const SteamTotp = require('steam-totp');
const SteamCommunity = require('steamcommunity');
const TradeOfferManager = require('steam-tradeoffer-manager');
const config = require('./config.json');

let proxyUrl = 'https://144.202.113.90:8080';

let proxifiedRequest = request.defaults({ 'proxy': proxyUrl });
let community = new SteamCommunity({ request: proxifiedRequest });

let ProxyClient = new Steam.CMClient();
ProxyClient.setHttpProxy(proxyUrl);
let client = new SteamUser(ProxyClient);

const manager = new TradeOfferManager({
  steam: client,
  community: community,
  language: 'en'
});

const logOnOptions1 = {
  accountName: config.accountName0,
  password: config.password0,
  twoFactorCode: SteamTotp.generateAuthCode(config.twoFactorCode0)
};

client.logOn(logOnOptions1);

client.on('loggedOn', () => {
  console.log('BOOSTSENPAY00 Logged into Steam');
  console.log('-------------------------------');
  client.setPersona(SteamUser.EPersonaState.Online);
  client.gamesPlayed(440);
});

community.login({
  accountName: config.accountName1,
  password: config.password1,
  twoFactorCode: SteamTotp.generateAuthCode(config.twoFactorCode1)
}, function (err, sessionID) {
  if (err) {
    console.log(config.accountName1 + ' Unable To Auth');
  };
  if (!err) {
    console.log(config.accountName1 + 'Successfully Logged On sessionID: ' + sessionID);
  };
});

OUTPUT:
image.png.b6070fb0c79c26edba1c7eef417e7a06.png

Posted
8 hours ago, Dr. McKay said:

Check what the actual error message is in the err.

Here's the error

BOOSTSENPAY00 Logged into Steam
-------------------------------
BOOSTSENPAY01 Unable To Auth
Error: tunneling socket could not be established, cause=connect ECONNREFUSED 144.202.113.90:8080
    at ClientRequest.onError (C:\Users\SENPAY98K\Desktop\test\node_modules\tunnel-agent\index.js:177:17)
    at Object.onceWrapper (events.js:482:26)
    at ClientRequest.emit (events.js:375:28)
    at TLSSocket.socketErrorListener (_http_client.js:475:9)
    at TLSSocket.emit (events.js:375:28)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:82:21) {
  code: 'ECONNRESET'
}

image.thumb.png.6c6631e63630e79b1c2cc3e3e7c3b371.png

 

Posted
3 hours ago, Dr. McKay said:

Your proxy refused your connection.

Thanks for the fast reply

Now i should use steam-user library for connecting, but i am still confused if it is really using the proxy.
Is there a way to check if the steam-user library is using a proxy or not ? something that log the currect ip maybe!

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