Jump to content
McKay Development

Recommended Posts

Posted

I am currently working on a bot which requires user access (non-anonymous), and for the purpose of making my own method of retrieving the app code, I have set promptSteamGuardCode to false, however this causes a RateLimitExceeded error when a log on is attempted, the steamGuard event is never emitted.

My code calls the logOn function only once, and no other steam-related methods are called multiple times either, here is the logOn snippet:

 

                let client = new SteamUser({promptSteamGuardCode: true});

		client.logOn({
			accountName: username,
			password: password
		});

		client.on('error', error => 
			callback(error)
		);

		client.on('steamGuard', (domain, callback, lastCodeWrong) => {
			callback("TokenRequired", domain, callback, lastCodeWrong);
		});


The function includes further non-steam related code, so that has been omitted.

What might be the cause of this?

Posted

Welp, I'm stupid.

This is caused by me attempting to call the callback of the main function, but it obviously calls the callback of the steamGuard event, causing yet another steamGuard event, and then looping until I get RateLimited.

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