frej4189 Posted June 5, 2018 Report Posted June 5, 2018 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? Quote
frej4189 Posted June 5, 2018 Author Report Posted June 5, 2018 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. Dr. McKay 1 Quote
Recommended Posts
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.