Jump to content
McKay Development

Recommended Posts

Posted

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',
'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)
steamLogin
steamLoginSecure
steamMachineAuth
sessionid
webTradeEligibility (from your's reddit post)
strInventoryLastContext=730_2
Steam_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).
Posted (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."
}

wJptoFsYZwA.jpg

Edited by chaot1c

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