Jump to content
McKay Development

frej4189

Member
  • Posts

    7
  • Joined

  • Last visited

frej4189's Achievements

  1. This happens very on/off though, 1 time it works, and then the next attempt 30 seconds after will work fine, there is no wait between things working and not working. Additionally, this can also happen at the first try in a day, week or even in the month. It happens very randomly, and it always works when attempting to buy normally (on https://store.steampowered.com/, manually).
  2. So after wrapping my mind around a problem I've had for a lot of time, I've come to ask here to maybe get some clearance. I am currently working on a bot that requires me calling methods outside of steam, and it initially seemed to be working. However, after some time, it has started to quite randomly return error 2 (GenericFailure), and sometimes it does not. The only thing I can think off was Steam logging the account out and requiring a relogin (it buys from steam store, which I know to sometimes require a relogin). However, making the account relogin did not seem to solve the problem, and I still occasionally get GenericFailure returned. So my question is: What can be this error be caused by? I have found that the wrong request method might be causing it, but I do have the correct method, so that will not be the case. What else? I know this might be a gray area, but if anyone has any idea, that would be great. Although this question is very general, I will supply the code which it fails on in case that could give you a clue about what is wrong: request.post("https://store.steampowered.com/checkout/inittransaction/", { form: { gidShoppingCart: shoppingCart, gidReplayOfTransID: -1, PaymentMethod: "steamaccount", abortPendingTransactions: 0, bHasCardInfo: 0, CardNumber: "", CardExpirationYear: "", CardExpirationMonth: "", FirstName: "", LastName: "", Address: "", AddressTwo: "", Country: "", City: "", State: "", PostalCode: "", Phone: "", ShippingFirstName: "", ShippingLastName: "", ShippingAddress: "", ShippingAddressTwo: "", ShippingCountry: "", ShippingCity: "", ShippingState: "", ShippingPostalCode: "", ShippingPhone: "", bIsGift: 1, GifteeAccountID: accountid, GifteeEmail: "", GifteeName: "Client", GiftMessage: files.getConfig().message, Sentiment: "Best%20Wishes", Signature: files.getConfig().signee, ScheduledSendOnDate: 0, BankAccount: "", BankCode: "", BankIBAN: "", BankBIC: "", TPBankID: "", bSaveBillingAddress: 0, gidPaymentID: "", bUseRemainingSteamAccount: 1, bPreAuthOnly: 0, sessionid: bots[bot].sessionid, snr: snr }, json: true } The body which is returned looks like so: { success: 2, purchaseresultdetail: 0, paymentmethod: 0, palpaltoken: null, transid: null }
  3. 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.
  4. 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?
  5. So I am (still) working on an automatic steam item seller, but I realised that the price specified is actually the "You Receive" price, and not the "Buyer pays", how would I go around doing this, since I will never actually have a chance to know the fees 100%
  6. I set the referer header, still got the error though - how many of those arguments am I supposed to set? EDIT: Sorry, I specified an invalid price, that was the reason as to why I didn't get it working.
  7. As has also been the case earlier, I am trying to create an automatic steam market seller, however I get error 400 when trying to do so. I have tried multiple ways, ending up trying to use httpRequestPost from the steamcommunity package community.httpRequestPost('https://steamcommunity.com/market/sellitem/', { form: { sessionid: community.getSessionID(), appid: item.appid, contextid: item.contextid, assetid: item.assetid, amount: 1, price: item.price }, headers: { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'User-Agent': 'Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16', 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8', 'Connection': 'keep-alive', 'Cookie': cookies, 'Host': 'steamcommunity.com', 'Accept-Encoding': 'gzip, deflate', 'Accept-Language': 'en-US,en;q=0.5' }, json: true }, (err, response, json) => { if(err) { console.log(err.toString()); return; } console.log(json); }, "steamcommunity"); This will return error 400, and I have no clue as to why that is, any suggestions?
×
×
  • Create New...