Jump to content
McKay Development

Recommended Posts

Posted (edited)
On 10/25/2024 at 8:48 AM, Dr. McKay said:

I'm not aware of autoRelogin being broken in any way.

Web sessions are completely independent of CM connections. When steam-user is "connected", that's a CM session. A web session is negotiated through the CM session, but they're entirely separate. Web sessions are never automatically renewed by steam-user; that responsibility falls onto you.


Didn't mean to hijack this thread, but is this intended? (not the websession)
enotfound seems to be fatal and exiting the whole process

let client = new SteamUser({
    autoRelogin: true, // default
    dataDirectory: './data/'
});

client.logOn({
    accountName: '',
    password: ''
});

client.on('loggedOn', (details) => {
	console.log('Logged into Steam as ' + client.steamID.getSteam3RenderedID());
	client.setPersona(SteamUser.EPersonaState.Online);
	client.gamesPlayed(7);
});

client.on('disconnected', (err, message) => {
    console.log(`${err} - ${message}`);
})

client.on('error', (e) => {
	console.log(e);
});

image.png.c6dedf2694492916e650e2c7a4aa87a8.png

Edited by Yeezy
Posted

Are you sure it's fatal and crashing the process? Looks to me like you're handling the error event as expected, not reconnecting, and the process exits as it should since there's nothing more on the event loop.

autoReconnect does not apply for disconnects which emit the error event. In those cases, you're responsible for reconnecting manually.

Posted
2 hours ago, Dr. McKay said:

Are you sure it's fatal and crashing the process? Looks to me like you're handling the error event as expected, not reconnecting, and the process exits as it should since there's nothing more on the event loop.

autoReconnect does not apply for disconnects which emit the error event. In those cases, you're responsible for reconnecting manually.

I could implement my own check for a disconnect,

But lets say say api.steampowered.com goes down and is unreachable, shouldn't autoRelogin keep the process in idle/try to reconnect? (instead of throwing the error event)

 

  • 2 weeks later...
Posted

You think im being rate limited with 50 profiles when steam goes down and they all try to reconnect?

 

image.png.9f9373922964c9de05e3b37d39897ef3.png

 

Last error received was: 3: NoConnection (steam went down)
and after that nothing, but they also didn't automatically reconnect after steam went back up. I'd assume if it was being rate limited it would throw 84 RateLimitExceeded?

 

Any thoughts on how I could debug this issue?


 

Posted
20 hours ago, Yeezy said:

You think im being rate limited with 50 profiles when steam goes down and they all try to reconnect?

 

image.png.9f9373922964c9de05e3b37d39897ef3.png

 

Last error received was: 3: NoConnection (steam went down)
and after that nothing, but they also didn't automatically reconnect after steam went back up. I'd assume if it was being rate limited it would throw 84 RateLimitExceeded?

 

Any thoughts on how I could debug this issue?


 

If u are Using that many profiles on the same Ip Ofc u wil get ratelimited i suggest using proxies in the constructors of the steam user and community

Posted
12 hours ago, TheMaster said:

If u are Using that many profiles on the same Ip Ofc u wil get ratelimited i suggest using proxies in the constructors of the steam user and community

I don’t think so, since no errors like RateLimitExceeded or Denied are being thrown. I don’t appear to be IP blocked, as I can restart all of them manually after steam downtime. They just fail to reconnect automatically for some reason and are not throwing any errors.

 

Just wanna see if I can find out whats causing this

Posted (edited)
On 11/8/2024 at 6:00 AM, Dr. McKay said:

You can see exactly what's happening internally if you add a debug listener like so:

user.on('debug', console.log)

 

 

Got this today, during steam routine downtime:

[2024-11-12T23:09:31.673Z] [W1] WebSocket disconnected with error: read ECONNRESET
[2024-11-12T23:09:31.673Z] [W1] Handling connection close
[2024-11-12T23:09:31.673Z] 3: NoConnection
[2024-11-12T23:09:31.673Z] Disconnecting without sending logoff
[2024-11-12T23:09:31.673Z] [W1] We wanted to end connection, but it's not connected or connecting
[2024-11-12T23:09:31.673Z] [EBO] Queueing exponential backoff "logOn" with timeout 1000
[2024-11-12T23:09:32.692Z] API GET request to https://api.steampowered.com/ISteamDirectory/GetCMListForConnect/v0001/?format=vdf&cellid=14: 200
[2024-11-12T23:09:32.716Z] Randomly chose netfilter server 185.25.182.52:27017 (load = 28, wtd_load = 21.6530790328979492)
[2024-11-12T23:09:32.716Z] [T31] Connecting to TCP CM: 185.25.182.52:27017
[2024-11-12T23:09:33.717Z] [T31] TCP connection timed out
[2024-11-12T23:09:33.717Z] [T31] Ending connection and removing all listeners
[2024-11-12T23:09:33.717Z] [WebAPI] Using cached value for API_GET_https://api.steampowered.com/ISteamDirectory/GetCMListForConnect/v0001/
[2024-11-12T23:09:33.719Z] Randomly chose websockets server ext1-par1.steamserver.net:27024 (load = 26, wtd_load = 20.9230833053588867)
[2024-11-12T23:09:33.719Z] [W37] Connecting to WebSocket CM ext1-par1.steamserver.net:27024
[2024-11-12T23:09:35.720Z] [W37] WS connection timed out
[2024-11-12T23:09:35.720Z] [WebAPI] Using cached value for API_GET_https://api.steampowered.com/ISteamDirectory/GetCMListForConnect/v0001/
[2024-11-12T23:09:35.721Z] Randomly chose websockets server ext1-par1.steamserver.net:27024 (load = 26, wtd_load = 20.9230833053588867)
[2024-11-12T23:09:35.721Z] [W43] Connecting to WebSocket CM ext1-par1.steamserver.net:27024
[2024-11-12T23:09:39.723Z] [W43] WS connection timed out
[2024-11-12T23:09:39.723Z] [WebAPI] Using cached value for API_GET_https://api.steampowered.com/ISteamDirectory/GetCMListForConnect/v0001/
[2024-11-12T23:09:39.725Z] Randomly chose websockets server ext1-par1.steamserver.net:27033 (load = 26, wtd_load = 23.2615313529968262)
[2024-11-12T23:09:39.725Z] [W52] Connecting to WebSocket CM ext1-par1.steamserver.net:27033
[2024-11-12T23:09:47.727Z] [W52] WS connection timed out
[2024-11-12T23:09:47.727Z] [WebAPI] Using cached value for API_GET_https://api.steampowered.com/ISteamDirectory/GetCMListForConnect/v0001/
[2024-11-12T23:09:47.728Z] Randomly chose websockets server ext1-par1.steamserver.net:27033 (load = 26, wtd_load = 23.2615313529968262)
[2024-11-12T23:09:47.729Z] [W61] Connecting to WebSocket CM ext1-par1.steamserver.net:27033
[2024-11-12T23:09:57.730Z] [W61] WS connection timed out
[2024-11-12T23:09:57.731Z] [WebAPI] Using cached value for API_GET_https://api.steampowered.com/ISteamDirectory/GetCMListForConnect/v0001/
[2024-11-12T23:09:57.733Z] Randomly chose netfilter server 185.25.182.52:27017 (load = 28, wtd_load = 21.6530790328979492)
[2024-11-12T23:09:57.733Z] [T70] Connecting to TCP CM: 185.25.182.52:27017
[2024-11-12T23:10:07.733Z] [T70] TCP connection timed out
[2024-11-12T23:10:07.733Z] [T70] Ending connection and removing all listeners
[2024-11-12T23:10:07.733Z] [WebAPI] Using cached value for API_GET_https://api.steampowered.com/ISteamDirectory/GetCMListForConnect/v0001/
[2024-11-12T23:10:07.735Z] Randomly chose websockets server ext1-par1.steamserver.net:27019 (load = 27, wtd_load = 22.5226225852966309)
[2024-11-12T23:10:07.735Z] Connecting to WebSocket CM ext1-par1.steamserver.net:27019
[2024-11-12T23:10:17.737Z] [W79] WS connection timed out
[2024-11-12T23:10:17.737Z] [WebAPI] Using cached value for API_GET_https://api.steampowered.com/ISteamDirectory/GetCMListForConnect/v0001/
[2024-11-12T23:10:17.738Z] Randomly chose websockets server ext1-par1.steamserver.net:27019 (load = 27, wtd_load = 22.5226225852966309)
[2024-11-12T23:10:17.738Z] [W88] Connecting to WebSocket CM ext1-par1.steamserver.net:27019
[2024-11-12T23:10:18.798Z] [W88] WebSocket disconnected with error: read ECONNRESET
[2024-11-12T23:10:18.799Z] [W88] Handling connection close
[2024-11-12T23:10:19.799Z] [WebAPI] Using cached value for API_GET_https://api.steampowered.com/ISteamDirectory/GetCMListForConnect/v0001/

 

After 23:10 it did not do anything for 2 hours, so I just ended the process.
 

 

 

Edited by Yeezy
Posted
On 11/13/2024 at 7:49 AM, Dr. McKay said:

Sounds like you have some network issue.


I let this script run on a new OVH VPS, so I don't think its a network issue.

Couldn't ECONNRESET also be caused by the steam servers abruptly closing the connection while they are still doing their maintenance?
 

The first econnreset it seemed to handle it fine and attempted the autoRelogin, but after it got the econreset from when it tried to reconnect it just exited I assume?

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