Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nhatkun opened this issue Apr 17, 2024 · 1 comment

Comments

@nhatkun
Copy link

nhatkun commented Apr 17, 2024

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.

@nhatkun
Copy link
Author

nhatkun commented Apr 18, 2024

Sorry, that because of steamguard writeFile. CLOSE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant