mxnster Posted June 9, 2021 Report Posted June 9, 2021 Hello! I have problems with login. const SteamUser = require('steam-user'); const SteamTotp = require('steam-totp'); const config = require('./config'); const client = new SteamUser(); const logOnOptions = { "accountName": config.username, "password": config.password, "twoFactorCode": SteamTotp.getAuthCode(config.ss) } client.logOn(logOnOptions); client.on('loggedOn', () => { console.log('logged'); }); internal/fs/utils.js:779 throw new ERR_INVALID_ARG_TYPE( ^ TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (165) at Object.writeFile (fs.js:1436:5) at FileStorage.saveFile.FileStorage.writeFile (C:\Users\ronal\Desktop\steam-auto-confirm-accept\node_modules\file-manager\index.js:68:5) at SteamUser._handlers.<computed> (C:\Users\ronal\Desktop\steam-auto-confirm-accept\node_modules\steam-user\components\logon.js:294:18) at SteamUser._handleMessage (C:\Users\ronal\Desktop\steam-auto-confirm-accept\node_modules\steam-user\components\messages.js:249:30) at CMClient.emit (events.js:315:20) at CMClient._netMsgReceived (C:\Users\ronal\Desktop\steam-auto-confirm-accept\node_modules\steam-client\lib\cm_client.js:323:8) at CMClient.handlers.<computed> (C:\Users\ronal\Desktop\steam-auto-confirm-accept\node_modules\steam-client\lib\cm_client.js:609:8) at CMClient._netMsgReceived (C:\Users\ronal\Desktop\steam-auto-confirm-accept\node_modules\steam-client\lib\cm_client.js:305:24) at TCPConnection.emit (events.js:315:20) at TCPConnection._readPacket (C:\Users\ronal\Desktop\steam-auto-confirm-accept\node_modules\steam-client\lib\tcp_connection.js:183:7) { code: 'ERR_INVALID_ARG_TYPE' } Quote
Dr. McKay Posted June 9, 2021 Report Posted June 9, 2021 What versions of node and the module are you using? Quote
mxnster Posted June 9, 2021 Author Report Posted June 9, 2021 (edited) node v14.16.0, npm 6.14.11 p.s. updated to the latest v14.17 and 7.16.0, nothing changed Edited June 9, 2021 by mxnster Quote
Dr. McKay Posted June 9, 2021 Report Posted June 9, 2021 I need to know what version of steam-user. Quote
mxnster Posted June 9, 2021 Author Report Posted June 9, 2021 1 hour ago, Dr. McKay said: I need to know what version of steam-user. Thanks, seems like its fixed my problem! Dr. McKay 1 Quote
Dr. McKay Posted June 10, 2021 Report Posted June 10, 2021 Be aware that if you're upgrading from v3 to v4, you need to check to make sure your code is compatible with the breaking changes in v4: Release v4.0.0 · DoctorMcKay/node-steam-user (github.com) Quote
Recommended Posts
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.