Jump to content


Photo

setHttpProxy() isn't working with changeEmail()

node.js node-steam-user

Best Answer Dr. McKay , 10 August 2018 - 06:05 PM

The rate-limit is obviously not on your public IP. The change request is going through the proxy.

Go to the full post


  • Please log in to reply
3 replies to this topic

#1 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 42 posts

Posted 09 August 2018 - 01:25 PM

code:

let client = new Steam.CMClient();
let user = new SteamUser(client);

client.setHttpProxy("http://user:[email protected]:8000");

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

user.on('loggedOn', function(details) {
	console.log("Logged into Steam as " + user.steamID.getSteam3RenderedID());
	console.log("change email to " + newEmail)

	user.changeEmail({
		"password": password,
		"newEmail": newEmail
	}, function(err) {
		...
	});
});

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

user.on('webSession', function(sessionID, cookies) {
	console.log("Got web session");
});	 

log:

username: qusoraierylined password: -- guard: twoFactorCode code: WH2NF
Logged into Steam as [U:1:319178106]
change email to [email protected]
Got web session
{ Error: RateLimitExceeded
    at Object.exports.eresultError (/root/bot/node_modules/steam-user/components/helpers.js:75:12)
    at /root/bot/node_modules/steam-user/components/account.js:129:21
    at Object.cb (/root/bot/node_modules/steam-user/components/messages.js:174:4)
    at CMClient._netMsgReceived (/root/bot/node_modules/steam-client/lib/cm_client.js:321:26)
    at CMClient.handlers.(anonymous function) (/root/bot/node_modules/steam-client/lib/cm_client.js:603:8)
    at CMClient._netMsgReceived (/root/bot/node_modules/steam-client/lib/cm_client.js:305:24)
    at emitOne (events.js:116:13)
    at TCPConnection.emit (events.js:211:7)
    at TCPConnection._readPacket (/root/bot/node_modules/steam-client/lib/tcp_connection.js:183:7)
    at emitNone (events.js:106:13) eresult: 84 }

user.publicIP returns my proxy's ip addres in loggedOn() event


Edited by Dr. McKay, 10 August 2018 - 06:04 PM.
Redacted password


#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,766 posts

Posted 10 August 2018 - 06:05 PM   Best Answer

The rate-limit is obviously not on your public IP. The change request is going through the proxy.



#3 MrPotato

MrPotato

    Advanced Member

  • Member
  • PipPipPip
  • 42 posts

Posted 11 August 2018 - 05:04 PM

The rate-limit is obviously not on your public IP. The change request is going through the proxy.

but why i got rate-limit on changeEmail? with logon it's ok


Edited by FunnyCheeze, 11 August 2018 - 05:08 PM.


#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,766 posts

Posted 11 August 2018 - 11:20 PM

I don't work for Valve.







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

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users