Jump to content
McKay Development

logon arg type error


mxnster

Recommended Posts

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'
}

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...