Jump to content
McKay Development

Recommended Posts

Posted (edited)

ummm i have a problem idk y this is happening  can anyone diagnose? the below is the only connection logic

    client.logOn(logOnOptions);
 
    client.on('loggedOn', function() {
        console.log(green,`Logged into Steam ${accname}`);
    });
   
    setInterval(() => {
        if (!client.steamID) {
            client.logOn(logOnOptions);
        }
    },600000); // 10 mins 600000
    setInterval(() => {
        if (!client.steamID) {
            client.logOn(logOnOptions);
        }else{
        client.webLogOn();
        }
    },3600000); // 1 hour 3600000


C:\New folder\node_modules\steam-user\components\09-logon.js:49
                let alreadyConnectingError = new Error('Already attempting to log on, cannot log on again');
                                             ^

Error: Already attempting to log on, cannot log on again
    at SteamUser.logOn (C:\New folder\node_modules\steam-user\components\09-logon.js:49:32)
    at Timeout._onTimeout (C:\New folder\mainimprovements.js:788:20)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7)

Node.js v21.7.1

Edited by TheMaster
  • 2 weeks later...
Posted

I apologize for my dumb question sir, but I haven't found it anywhere else.

What is the specific error that I should listen for when I need to logOn again?
ATM I'm only using community.on("sessionExpired") to call webLogon to refresh the cookies on community and trade manager, with the client.on("webSession") event btw.

Posted
2 hours ago, m.tsa said:

I apologize for my dumb question sir, but I haven't found it anywhere else.

What is the specific error that I should listen for when I need to logOn again?
ATM I'm only using community.on("sessionExpired") to call webLogon to refresh the cookies on community and trade manager, with the client.on("webSession") event btw.

https://github.com/DoctorMcKay/node-steam-user?tab=readme-ov-file#error

The 'error' event.

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