chaot1c Posted December 9, 2016 Report Share Posted December 9, 2016 Getting a error when trying to execute this code: community.httpRequestPost('https://steamcommunity.com/market/sellitem/', { form: { sessionid: community.getSessionID(), appid: item.appid, contextid: item.contextid, assetid: item.assetid, amount: 1, price: 10000 // 10000 == $100 }, headers: headers, json: true }, (err, response, json) => { if(err) { console.log(`Sell item HTTPREQUESTPOST error: ${err.toString()}`); return; } console.log(json); }, "steamcommunity"); My headers are: 'Host': 'steamcommunity.com','Origin': 'https://steamcommunity.com''Referer': 'https://steamcommunity.com/market/''User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36','X-Prototype-Version': '1.7','X-Requested-With': 'XMLHttpRequest', Cookies: (first 4 getting from node-steam-tradeoffer-manager)steamLoginsteamLoginSecuresteamMachineAuthsessionidwebTradeEligibility (from your's reddit post)strInventoryLastContext=730_2Steam_Language=english I've tried to do request from REST Client with client's account cookies, headers, and it works (from client, not from node). Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted December 9, 2016 Report Share Posted December 9, 2016 502 = Bad Gateway Have you tried again after some time? Quote Link to comment Share on other sites More sharing options...
chaot1c Posted December 9, 2016 Author Report Share Posted December 9, 2016 (edited) 502 = Bad Gateway Have you tried again after some time?httpRequestPost returns only 502, but there is a message: { "success": false, "message": "There was a problem listing your item. Refresh the page and try again." } Edited December 9, 2016 by chaot1c Quote Link to comment Share on other sites More sharing options...
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.