Skip to content

Steam login fail: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined #339

@nhatkun

Description

@nhatkun

Sometime i can login, but after reset and try few times, it's seem doesn't works anymore until next day or something like that, i am not sure

var steam = new SteamCommunity();
logOnOptions = {
	"accountName": account_name,
	"password": password,
	"twoFactorCode": SteamTotp.getAuthCode(share_secret_hash)
};

steam.login(logOnOptions, function(err, sessionID, cookies, steamguard) {
	if (err) {
		console.log(`Steam login fail: ${err.message}`);
		return;
	}
	console.log(`Logged into Steam: ${account_name} | Mobile app code: ${logOnOptions.twoFactorCode}`);
});

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined

The log:
Logged into Steam: account_name | Mobile app code: CODE
Steam login fail: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined

Sorry, that because of steamguard writeFile. CLOSE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions