Jump to content
McKay Development

adam1

Member
  • Content Count

    5
  • Joined

  • Last visited

Everything posted by adam1

  1. I'll keep an eye on this thread, hope you can come up with a solution. Right now I've implemented a pretty nasty workaround. process.on('uncaughtException', error => { if (error.message === 'Already logged on, cannot log on again') { console.error(error.message); return; } throw error; });
  2. @Dr. McKay I realised I can't use try/catch with the logOn method to handle this error due to lack of callback/promise. Is this something that could be changed? Also, using `user.on('error', [..]` doesn't seem to catch this.
  3. Hi, thanks for trying it out. I'm running `4.19.3` at the moment. Although when I tried this again today I had to leave it running for quite some time to generate an error... 6 hours roughly. I did get a slightly longer stack trace this time. I'm usually running it in a screen so I worry that might be chopping the stack trace off. /Users/user/git/app/node_modules/steam-user/components/logon.js:23 throw new Error("Already logged on, cannot log on again"); ^ Error: Already logged on, cannot log on again at /Users/user/git/app/node_mo
  4. Hey, sure. If I change my job to run every second I can get it to happen within a minute or so usually: Feb 10 @ 08:07:17 (UTC) /Users/user/git/app/node_modules/steam-user/components/logon.js:23 throw new Error("Already logged on, cannot log on again"); ^ Error: Already logged on, cannot log on again at /Users/user/git/app/node_modules/steam-user/components/logon.js:23:10 at processTicksAndRejections (node:internal/process/task_queues:75:11)
  5. const getAppBranchInfo = (appId, branch) => new Promise(resolve => { let user = new SteamUser(); user.on('loggedOn', async () => { const productInfo = await user.getProductInfo([appId], []); const appName = productInfo.apps[appId].appinfo.common.name; const buildId = productInfo.apps[appId].appinfo.depots.branches[branch].buildid; const timeUpdated = productInfo.apps[appId].appinfo.depots.branches[branch].timeupdated; // Graefully logoff. user.logOff(); resolve({ appName: appName, buildId: buildI
×
×
  • Create New...