Hsn_CODES Posted Saturday at 06:26 PM Report Posted Saturday at 06:26 PM 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? Quote
Dr. McKay Posted Sunday at 06:44 AM Report Posted Sunday at 06:44 AM You likely have some kind of network issue. Add this and see what's happening: client.on('debug', console.log); Quote
Hsn_CODES Posted Sunday at 01:34 PM Author Report Posted Sunday at 01:34 PM 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. Quote
Recommended Posts
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.