Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changelist event lost package changes #417

Open
B-l-u-e-b-e-r-r-y opened this issue Dec 23, 2022 · 1 comment
Open

changelist event lost package changes #417

B-l-u-e-b-e-r-r-y opened this issue Dec 23, 2022 · 1 comment
Labels

Comments

@B-l-u-e-b-e-r-r-y
Copy link

Describe the bug

I'm using changelist to receive Steam changes.
When Steam has a sale, they sends out a large number of package changes, but the changelist often loses the package changes.

Here is my code:

import * as SteamUser from 'steam-user';
import { steamAccount, steamPassword, queue } from './config';
import { sender } from './utils';

const user = new SteamUser({
    enablePicsCache: true,
    changelistUpdateInterval: 1000
});

user.logOn({
    accountName: steamAccount,
    password: steamPassword
});

user.on('loggedOn', async () => {
    Common.log("Steam: Logged On");
});

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

user.on('changelist', (changeNumber, apps, packages) => {
    console.log('[changeNumber]', changeNumber);
    console.log('apps:', apps.length);
    console.log('packages:', packages.length);

    if (apps.length > 0) {
        // for message queue
        sender(apps, queue.app);
    }

    if (packages.length > 0) {
        sender(packages, queue.package);
    }
});

Versions

  • node.js: "v16.14.0"
  • "steam-user": "^4.25.0"

Screenshots and Error Logs

According to the changelist record page of SteamDB, the changenumber of this winter sale is 17169860, my program stalled after receiving 17169859, and the next changenumber did not receive this changes.
image

@louyuoops
Copy link

maybe changes too large without response,
see README, when over 5000, no response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants