Okay. I have a script to accept offers and so.. And it was working fine, and nothing has changed. And one day it started to show me the error, and script not working anymore at all. I simplifyed the code to find out the error.. This is the Code:
const SteamUser = require('steam-user');
const SteamTotp = require('steam-totp');
const config = require('./config.json');
const client = new SteamUser();
const logOnOptions = {
accountName: config.username,
password: config.password,
twoFactorCode: SteamTotp.generateAuthCode(config.shared_secret)
};
client.logOn(logOnOptions);
client.on('loggedOn', () => {
console.log('LoggedOn to Steam');
});
And this is the error:
Logged into Steam
C:\Users\ron1\WebProjects\TradeOffers3\node_modules\steam-user\components\friend
s.js:494
groupList[friend.nGroupID].members.push(sid);
^
TypeError: Cannot read property 'members' of undefined
at C:\Users\ron1\WebProjects\TradeOffers3\node_modules\steam-user\components
\friends.js:494:29
at Array.forEach (<anonymous>)
at SteamUser._handlers.(anonymous function) (C:\Users\ron1\WebProjects\Trade
Offers3\node_modules\steam-user\components\friends.js:491:19)
at SteamUser._handleMessage (C:\Users\ron1\WebProjects\TradeOffers3\node_mod
ules\steam-user\components\messages.js:216:29)
at emitThree (events.js:135:13)
at CMClient.emit (events.js:216:7)
at CMClient._netMsgReceived (C:\Users\ron1\WebProjects\TradeOffers3\node_mod
ules\steam-client\lib\cm_client.js:323:8)
at CMClient.handlers.(anonymous function) (C:\Users\ron1\WebProjects\TradeOf
fers3\node_modules\steam-client\lib\cm_client.js:603:8)
at CMClient._netMsgReceived (C:\Users\ron1\WebProjects\TradeOffers3\node_mod
ules\steam-client\lib\cm_client.js:305:24)
at emitOne (events.js:115:13)
Can someone help me to understand why is this happening?