Jump to content
McKay Development

Recommended Posts

Posted

Hay, i cant send Tradeoffer's.

 

My Code is:

SteamUser.on('webSession', function(sessionID, cookies) {
    log('Got the WebSession from the login!');
	
    SteamCommunity.setCookies(cookies); // sets the cookies for steamcommunity
    manager.setCookies(cookies); // sets the cookies for the trade-offer manager
    manager.parentalUnlock('....');

    var offer = manager.createOffer(tradeurl); // create a new offer
    offer.addTheirItem({"appid": 730, "contextid": 2, "assetid": "6658188534"}); // add a item
	
    offer.send(function(err, status) { // send a offer
        if (err) { // if it fails
            log(err + ' ' + status, true);
        } else {
            console.log("Offer #" + offer.id + " " + status);
        }
    });
}); /* TODO: A WAY TO REFRESH SESSIONS */ 

 

 

This gives me the following Error:

 

[2016:06:22-12:59:42] accountname: Error: HTTP error 403 undefined

 

Posted (edited)
manager.setCookies(cookies, function (callback) {
		
		if(callback)
			throw callback;
		
		manager.parentalUnlock('code', function (callback) {
			
			if(callback)
				throw callback;
			
			var offer = manager.createOffer(tradeurl); // create a new offer
			offer.addTheirItem({"appid": 730, "contextid": 2, "assetid": "6658188534"}); // add a item
			
			offer.send(function(err, status) { // send a offer
				if (err) { // if it fails
					log(err + ' ' + status, true);
				} else {
					console.log("Offer #" + offer.id + " " + status);
				}
			});
		});
	}); // sets the cookies for the trade-offer manager

Still gives me a 403 Error:

Name.js:69                
       throw callback;
                        ^

Error: HTTP error 403
    at SteamCommunity._checkHttpError (...\node_modules\steamcommunity\components\http.js:96:9)
    at Request._callback (...\node_modules\steamcommunity\components\http.js:50:61)
    at Request.self.callback (...\node_modules\request\request.js:200:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (...\node_modules\request\request.js:1067:10)
    at emitOne (events.js:82:20)
    at Request.emit (events.js:169:7)
    at Gunzip.<anonymous> (...\node_modules\request\request.js:988:12)
    at emitNone (events.js:72:20)

The Error happens on the first Callback.

Edited by rezzex

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