Jump to content
McKay Development

bind ip to node-steam-user


mtn

Recommended Posts

/root/node_modules/steam-client/node_modules/protobufjs/dist/ProtoBuf.js:2440
                            throw Error(this+"#"+keyOrObj+" is not a field: undefined");
                            ^

Error: .CMsgClientLogon#accountName is not a field: undefined
    at Error (native)
    at MessagePrototype.set (/root/node_modules/steam-client/node_modules/protobufjs/dist/ProtoBuf.js:2440:35)
    at MessagePrototype.set (/root/node_modules/steam-client/node_modules/protobufjs/dist/ProtoBuf.js:2434:38)
    at Message (/root/node_modules/steam-client/node_modules/protobufjs/dist/ProtoBuf.js:2363:34)
    at CMClient.logOn (/root/node_modules/steam-client/lib/cm_client.js:188:52)
    at Object.<anonymous> (/root/newip.js:41:8)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:148:18)
    at node.js:405:3

what i doing wrong?


var SteamTotp = require('steam-totp');

var request = require("request");
var CMClient = require('steam-client').CMClient;
var SteamUser = require('steam-user');
 
var client = new CMClient();
client.bind('127.0.0.1');
 
var user = new SteamUser(client);
var code = SteamTotp.generateAuthCode('======');

console.log(code);







client.logOn({
	"accountName": "*******",
	"password": "********"
});
Edited by mtn
Link to comment
Share on other sites

  • 4 months later...

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...