Jump to content
McKay Development

furi

Member
  • Posts

    4
  • Joined

  • Last visited

Everything posted by furi

  1. another error /root/bot/node_modules/steam-user/components/connection.js:21 this._connection.stream.setTimeout(0); ^ TypeError: Cannot read property 'setTimeout' of undefined at SteamUser.<anonymous> (/root/bot/node_modules/steam-user/components/connection.js:21:26) at handlers.forEach (/root/bot/node_modules/steam-user/components/classes/HandlerManager.js:37:12) at Array.forEach (<anonymous>) at HandlerManager.emit (/root/bot/node_modules/steam-user/components/classes/HandlerManager.js:36:12) at SteamUser._handleMessage (/root/bot/node_modules/steam-user/components/messages.js:538:24) at SteamUser._handleNetMessage (/root/bot/node_modules/steam-user/components/messages.js:464:7) at TCPConnection._readMessage (/root/bot/node_modules/steam-user/components/connection_protocols/tcp.js:193:12) at Socket.emit (events.js:182:13) at emitReadable_ (_stream_readable.js:534:12) at process._tickCallback (internal/process/next_tick.js:63:19) last 2 minute debug, in 23:40:45 was crash [Tue, 05 Feb 2019 23:38:21 GMT] Steam debug: Unhandled message: 850 [Tue, 05 Feb 2019 23:39:45 GMT] Steam debug: Handled message: 5599 [Tue, 05 Feb 2019 23:40:15 GMT] Steam debug: Handled message: 5599 [Tue, 05 Feb 2019 23:40:39 GMT] Steam debug: Handled message: 757 [Tue, 05 Feb 2019 23:40:39 GMT] Steam debug: Logged off: ServiceUnavailable [Tue, 05 Feb 2019 23:40:40 GMT] Steam debug: Using WebSocket; we rolled 47 and percent to use WS is 50 [Tue, 05 Feb 2019 23:40:41 GMT] Steam debug: WebSocket disconnected with error: read ECONNRESET [Tue, 05 Feb 2019 23:40:41 GMT] Steam debug: Using WebSocket; we rolled 47 and percent to use WS is 50 [Tue, 05 Feb 2019 23:40:42 GMT] Steam debug: WS connection timed out [Tue, 05 Feb 2019 23:40:42 GMT] Steam debug: Using TCP; we rolled 93 and percent to use WS is 50 [Tue, 05 Feb 2019 23:40:42 GMT] Steam debug: Connecting to TCP CM: *some IP* [Tue, 05 Feb 2019 23:40:42 GMT] Steam debug: WebSocket disconnected with error: read ECONNRESET [Tue, 05 Feb 2019 23:40:42 GMT] Steam debug: Using TCP; we rolled 64 and percent to use WS is 50 [Tue, 05 Feb 2019 23:40:42 GMT] Steam debug: Connecting to TCP CM: *another IP* [Tue, 05 Feb 2019 23:40:42 GMT] Steam debug: TCP connection established [Tue, 05 Feb 2019 23:40:42 GMT] Steam debug: Handled message: 1303 [Tue, 05 Feb 2019 23:40:42 GMT] Steam debug: Channel encrypt request: protocol 1, universe 1, nonce *some ID*, 0 remaining bytes [Tue, 05 Feb 2019 23:40:42 GMT] Steam debug: Sending message: 1304 [Tue, 05 Feb 2019 23:40:42 GMT] Steam debug: Handled message: 1305 [Tue, 05 Feb 2019 23:40:42 GMT] Steam debug: Sending message: 5514 [Tue, 05 Feb 2019 23:40:42 GMT] Steam debug: Handled message: 751 [Tue, 05 Feb 2019 23:40:42 GMT] Steam debug: Log on response: TryAnotherCM [Tue, 05 Feb 2019 23:40:43 GMT] Steam debug: TCP connection established [Tue, 05 Feb 2019 23:40:43 GMT] Steam debug: Using WebSocket; we rolled 11 and percent to use WS is 50 [Tue, 05 Feb 2019 23:40:44 GMT] Steam debug: Handled message: 1303
  2. 1. ok, i add this and if this will repeat, i'll report here 2. yeah, actually, thanks
  3. it happened once on 2 of 4 my bots during recent problems with steam const SteamCommunity = require('steamcommunity'); const SteamUser = require('steam-user'); const TradeOfferManager = require('steam-tradeoffer-manager'); const steamTotp = require('steam-totp'); const client = new SteamUser(); const community = new SteamCommunity(); const manager = new TradeOfferManager({ community }); let isAlive = false; const DEFAULT_TIMER = 60 * 1000; client.logOn(logInOptions); client.on('loggedOn', () => { log('Steam client loggedOn okay'); client.setPersona(1); }); client.on('webSession', (sessionid, cookies) => { manager.setCookies(cookies, err => { if (err) return log(`Steam coockies: ${err}`); isAlive = true; log('Steam webSession okay'); }); }); community.on('sessionExpired', err => { setTimeout(steamCommunityLogin, DEFAULT_TIMER); isAlive = false; log(`Steam community session: ${err}`); }); client.on('error', err => log(`Steam client: ${err}`)); function steamCommunityLogin() { if (!isAlive) { community.login({ ...logInOptions, twoFactorCode: steamTotp.getAuthCode(sharedSecret) }, err => { if (err) { setTimeout(steamCommunityLogin, DEFAULT_TIMER); log(`Steam community login: ${err}`); } else { isAlive = true; log('Steam community login okay'); } }); } }
  4. In my code i use only logOn method and event listeners such as loggedOn and webSession. Is it normal?
×
×
  • Create New...