Jump to content
McKay Development

Recommended Posts

Posted
const SteamUser = require('steam-user');
// const SteamTotp = require('steam-totp');

const client = new SteamUser();

const logOnOptions = {
	accountName: '---',
	password: '---',
	// twoFactorCode: SteamTotp.generateAuthCode('---')
  };
  
  client.logOn(logOnOptions);
  
  client.on('loggedOn', () => {
	console.log('Logged into Steam');
  
	client.setPersona(SteamUser.EPersonaState.Away);
	console.log('STATUS = AWAY');
	client.gamesPlayed(440);
  });

even though I am using an example code, the code isn't giving any output. I tried debugging the code and it's stuck in a loop, It keeps going through all the funcitons, again and again in the file named "09-logon.js". i tried both using and account without any 2fa and with 2fa also providing the secret code but i get no output. any help?

Posted
2025-03-09T13:20:45.341Z - Error reading file machineAuthToken.sinstv18.txt: ENOENT: no such file or directory, open 'C:\Users\hassaan\AppData\Local\doctormckay\node-steamuser\machineAuthToken.sinstv18.txt'
2025-03-09T13:20:45.550Z - Error reading file machineAuthToken.sinstv18.txt: ENOENT: no such file or directory, open 'C:\Users\hassaan\AppData\Local\doctormckay\node-steamuser\machineAuthToken.sinstv18.txt'
2025-03-09T13:20:46.147Z - API GET request to https://api.steampowered.com/ISteamDirectory/GetCMListForConnect/v0001/?format=vdf&cellid=0: 200
2025-03-09T13:20:46.150Z - Randomly chose websockets server cmp2-iad1.steamserver.net:27020 (load = 13, wtd_load = 5.23279571533203125)
2025-03-09T13:20:46.150Z - [W1] Connecting to WebSocket CM cmp2-iad1.steamserver.net:27020
2025-03-09T13:20:46.279Z - API GET request to https://api.steampowered.com/ISteamDirectory/GetCMListForConnect/v0001/?format=vdf&cellid=0: 200
2025-03-09T13:20:46.282Z - Randomly chose netfilter server 162.254.195.66:27017 (load = 17, wtd_load = 9.83317804336547852)
2025-03-09T13:20:46.282Z - [T1] Connecting to TCP CM: 162.254.195.66:27017
2025-03-09T13:20:46.588Z - [T1] TCP connection established
2025-03-09T13:20:46.872Z - [T1] Handled message: ChannelEncryptRequest
2025-03-09T13:20:46.873Z - Channel encrypt request: protocol 1, universe 1, nonce 849637bb018ea6c79d641c5b91c8fcd8, 0 remaining bytes
2025-03-09T13:20:46.874Z - Sending message: ChannelEncryptResponse
2025-03-09T13:20:47.081Z - [W1] WebSocket connection success; now logging in
2025-03-09T13:20:47.082Z - Logging on with account name and password; fetching a new refresh token
2025-03-09T13:20:47.084Z - Sending message: ClientHello
2025-03-09T13:20:47.090Z - Sending message: Authentication.GetPasswordRSAPublicKey#1
2025-03-09T13:20:47.091Z - steam-session startWithCredentials exception
2025-03-09T13:20:47.091Z - Handle logon response (ServiceUnavailable)
2025-03-09T13:20:47.091Z - Log on response: ServiceUnavailable
2025-03-09T13:20:47.092Z - Disconnecting without sending logoff
2025-03-09T13:20:47.092Z - [W1] Ending connection and removing all listeners
2025-03-09T13:20:47.092Z - [EBO] Queueing exponential backoff "logOn" with timeout 1000

Even after changing my internet i am getting the same debug logs.

  • 1 month later...
Posted (edited)

Having similar issue when logging in my accounts with refreshtokens, sometimes it stucks and i dont get any response in any possible events like "error" "disconnected", "loggedOn"
debug after stuck looks like (could be wrong lines but anyway)
 

[W189861] WebSocket closed by remote with code 1000 and reason ""
[W189861] Handling connection close
Disconnecting
Sending message: ClientLogOff
Disconnecting without sending logoff
[W189861] We wanted to end connection, but it's not connected or connecting
Disconnecting
[W189859] We wanted to end connection, but it's not connected or connecting
[W189859] We wanted to end connection, but it's not connected or connecting
Disconnecting
[W189860] We wanted to end connection, but it's not connected or connecting
[W189860] We wanted to end connection, but it's not connected or connecting
Disconnecting
[W189861] We wanted to end connection, but it's not connected or connecting
[W189861] We wanted to end connection, but it's not connected or connecting

webCompatibilityMode is true, with false is the same

Edited by UntitledUser

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