Jump to content


Photo

Sometimes bot can't login, with no reason

node.js node-steam-user

  • Please log in to reply
7 replies to this topic

#1 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 57 posts

Posted 06 September 2018 - 12:51 PM

log('authCode');
let client = new Steam.CMClient();
let user = new SteamUser(client, {enablePicsCache: true, promptSteamGuardCode: false});
log("http://" + proxy);
client.setHttpProxy("http://" + proxy);


user.logOn({"accountName": username,"password": password, "authCode": code});
user.on('error', function(e) {
console.log(e);
closeConnection(user);
});


user.on('steamGuard', function(domain, scallback) {
console.log('authCode: badCode');
closeConnection(user);
});
user.once('loggedOn', function(details) {
log("authCode: loggedOn");
});

log:

0|start  | [19:42:11] "New account sa5fqyllljfsd153af:sa5fqyllljfsd153a ref: 1 steamid: 76561198858394123"
0|start  | [19:42:11] "authCode"
0|start  | [19:42:11] "http://*@*:*"
// that's all! why not login?
 
UPD: proxy is't valid, please add error that proxy isn't valid

Edited by FunnyCheeze, 06 September 2018 - 01:05 PM.


#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,815 posts

Posted 06 September 2018 - 04:10 PM

What do you mean by "proxy isn't valid"?



#3 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 57 posts

Posted 06 September 2018 - 10:19 PM

What do you mean by "proxy isn't valid"?

my bad, this proxy doesn't work



#4 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 57 posts

Posted 12 September 2018 - 10:28 AM

btw, if proxy doesn't work, bot will not login and will not fire error event, why?



#5 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 57 posts

Posted 13 September 2018 - 10:52 PM

so, i need solution.

log:

[05:44:57] "Selected valid proxy: *:*@*:*"
[05:44:57] "authCode: 12345"
[05:44:57] "http://*:*@*:*"

and then not happens nothing!

code:

function logIn(code, username, password, steamid, proxy) {
	log('authCode: ' + code);
	let client = new Steam.CMClient();
	let user = new SteamUser(client, {enablePicsCache: true, promptSteamGuardCode: false});
	log("http://" + proxy);
	client.setHttpProxy("http://" + proxy);

	user.logOn({"accountName": username,"password": password, "authCode": code});

	user.on('error', function(e) {
		log(e);
	});

	user.on('steamGuard', function(domain, scallback) {
		console.log('authCode: badCode');
	});

	user.once('loggedOn', function(details) {
		log("loggedOn");
	});
}

Edited by FunnyCheeze, 13 September 2018 - 10:52 PM.


#6 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,815 posts

Posted 14 September 2018 - 12:14 AM

Update steam-user to 3.28.2 please.


  • MrPotato likes this

#7 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 57 posts

Posted 02 October 2018 - 01:21 PM

how can i set timeout connection?



#8 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 57 posts

Posted 04 October 2018 - 10:08 AM

hi.







Also tagged with one or more of these keywords: node.js, node-steam-user

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users