Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

Error: There was an error sending your trade offer. Please try again later. (26) #104

Closed
Commanche2 opened this issue May 8, 2015 · 4 comments

Comments

@Commanche2
Copy link

I get all the time the error that I describe in the title of this ticket. The sentry file was created on April 30th, and of course there was enough time for SteamGuard to allow trades. I logged into the Steam application and tried to perform a manually trade and was successful. What's wrong? I attach the code below:

function makeTrade(tradeUser, urlToken, itemsToTrade) {
    inTrade = true;
    var trimTokenUrl = urlToken.split('&token=');
    var tradeAccesToken = trimTokenUrl[1];
    trade.loadPartnerInventory({
        partnerSteamId: tradeUser,
        appId: appid,
        contextId: contextid
    }, function(err, items) {{
          trade.makeOffer ({
                partnerSteamId: tradeUser,
                accessToken: tradeAccesToken,
                itemsFromMe: [],
                itemsFromThem: itemsToTrade,
          }, function(err, response){
                if (err) {
                  logger.error(err);
                }
          });
        }
    });

I get all the information from database:

  • tradeUser is the steamID.
  • urlToken is the entire public trade url.
  • itemsToTrade is an array of items which structure is that:
    [ { appid: 730, contextid: 2, amount: 1, assetid: '469444882' } ]

Stack trace:

Error: There was an error sending your trade offer.  Please try again later. (26)
    at SteamTradeOffers.<anonymous> (/Users/*****/node_modules/steam-tradeoffers/index.js:427:18)
    at Request.self.callback (/Users/*****/node_modules/steam-tradeoffers/node_modules/request/request.js:368:22)
    at Request.emit (events.js:110:17)
    at Request.<anonymous> (/Users/*****/node_modules/steam-tradeoffers/node_modules/request/request.js:1219:14)
    at Request.emit (events.js:129:20)
    at IncomingMessage.<anonymous> (/Users/*****/node_modules/steam-tradeoffers/node_modules/request/request.js:1167:12)
    at IncomingMessage.emit (events.js:129:20)
    at _stream_readable.js:908:16
    at process._tickCallback (node.js:355:11)

I cant find my fault. There's no way to get it run.

P.S.: I have no pending trade offers.

@scholtzm
Copy link

scholtzm commented May 8, 2015

All of the items in itemsToTrade are tradable?

@Commanche2
Copy link
Author

I made trading tests with my main account. My main account it's the trade user that the bot must to ask for items, and of course, the items that I made it are there arround 1 year or 1 year and a half. I made test with skins that don't have any restriction.

I try to explain as well as I can. Ask me whatever you don't understand.

@Commanche2
Copy link
Author

I tried to do manually the trade by coding like this:

function makeTrade(tradeUser, urlToken, itemsToTrade) {
    trade.loadPartnerInventory({
        partnerSteamId: 'Steam id as string',
        appId: 730,
        contextId: 2
    }, function(err, items) {{
          trade.makeOffer ({
                partnerSteamId: 'Steam id as string',
                accessToken: 'access token as string',
                itemsFromMe: [],
                itemsFromThem: [ { appid: 730, contextid: 2, amount: 1, assetid: '469444882' } ],
          }, function(err, response){
                if (err) {
                  logger.error(err);
                }
          });
        }
    });
}

But i get te same stack trace:

Error: There was an error sending your trade offer.  Please try again later. (26)
    at SteamTradeOffers.<anonymous> (/Users/*****/node_modules/steam-tradeoffers/index.js:427:18)
    at Request.self.callback (/Users/*****/node_modules/steam-tradeoffers/node_modules/request/request.js:368:22)
    at Request.emit (events.js:110:17)
    at Request.<anonymous> (/Users/*****/node_modules/steam-tradeoffers/node_modules/request/request.js:1219:14)
    at Request.emit (events.js:129:20)
    at IncomingMessage.<anonymous> (/Users/*****/node_modules/steam-tradeoffers/node_modules/request/request.js:1167:12)
    at IncomingMessage.emit (events.js:129:20)
    at _stream_readable.js:908:16
    at process._tickCallback (node.js:355:11)

And this is the item that i tried to get from my main account:

"469444882_0":{
    "appid":"730",
    "classid":"469444882",
    "instanceid":"0",
    "icon_url":"fWFc82js0fmoRAP-qOIPu5THSWqfSmTELLqcUywGkijVjZYMUrsm1j-9xgEObwgfEh_nvjlWhNzZCveCDfIBj98xqodQ2CZknz5vMeDsDz9-TQDGEaFKY-Ao9jfhDCM7_cotAYe0rugAeArstovAZ7B5MdtLGZLYUqePMwz96xkw0qEOKJGBpCPn1TOpZDlzTGiavQ",
    "icon_url_large":"fWFc82js0fmoRAP-qOIPu5THSWqfSmTELLqcUywGkijVjZYMUrsm1j-9xgEObwgfEh_nvjlWhNzZCveCDfIBj98xqodQ2CZknz5vMeDsDz9-TQDGEaFKY-Ao9jfhDCM7_cpcWNak8L5IfAy9vYGQMrYvMtFKS8CFW_WBYFv14hox1aRdLseB8iq82inhPmcCUw2rpDzWGEg1KA",
    "icon_drag_url":"",
    "name":"Tec-9 | DDPAT Urbano",
    "market_hash_name":"Tec-9 | Urban DDPAT (Field-Tested)",
    "market_name":"Tec-9 | DDPAT Urbano (Algo desgastado)",
    "name_color":"D2D2D2",
    "background_color":"",
    "type":"Pistola de grado de consumidor",
    "tradable":1,
    "marketable":1,
    "commodity":0,
    "descriptions":[
        {
            "type":"html",
            "value":"Estado: Algo desgastado"
        },
        {
            "type":"html",
            "value":" "
        },
        {   
            "type":"html",
            "value":"Como pistola ideal para el terrorista en movimiento, la Tec-9 es letal en espacios cerrados y cuenta con una generosa capacidad en el cargador. Se ha pintado usando un patr\u00f3n disruptivo digital (DDPAT) hidrogr\u00e1fico.\n\n<i>En el momento en que est\u00e1s lo suficientemente cerca para notar los p\u00edxeles ya es demasiado tarde<\/i>"},{"type":"html",
            "value":" "
        },
        {
            "type":"html",
            "value":"La colecci\u00f3n de Bank",
            "color":"9da1a9",
            "app_data": {
                            "def_index":"65535",
                            "is_itemset_name":1
                        }
        },
        {
            "type":"html",
            "value":"\u009d",
            "app_data": {
                "def_index":"65535"
            }
        },
        {
            "type":"html",
            "value":" "
        }
    ],
    "actions":[
        {
            "name":"Inspeccionar en el juego...",
            "link":"steam:\/\/rungame\/730\/76561202255233023\/+csgo_econ_action_preview%20S%owner_steamid%A%assetid%D919904926487517598"
        }
    ],
    "market_actions":[
        {
            "name":"Inspeccionar en el juego...",
            "link":"steam:\/\/rungame\/730\/76561202255233023\/+csgo_econ_action_preview%20M%listingid%A%assetid%D919904926487517598"
        }
    ],
    "tags":[
        {
            "internal_name":"CSGO_Type_Pistol",
            "name":"Pistola",
            "category":"Type",
            "category_name":"Tipo"
        },
        {
            "internal_name":"weapon_tec9",
            "name":"Tec-9",
            "category":"Weapon",
            "category_name":"Arma"
        },
        {
            "internal_name":"set_bank",
            "name":"La colecci\u00f3n de Bank",
            "category":"ItemSet",
            "category_name":"Colecci\u00f3n"
        },
        {
            "internal_name":"normal",
            "name":"Normal",
            "category":"Quality",
            "category_name":"Categor\u00eda"
        },
        {
            "internal_name":"Rarity_Common_Weapon",
            "name":"de grado de consumidor",
            "category":"Rarity",
            "color":"b0c3d9",
            "category_name":"Calidad"
        },
        {
            "internal_name":"WearCategory2",
            "name":"Algo desgastado",
            "category":"Exterior",
            "category_name":"Exterior"
        }
    ]
}

I have no idea what's happend. 😓

@Commanche2
Copy link
Author

As soon as I wrote the previous comment I realize what was my fault... 😖
When I set the assetid on items structure, I put the classid (WROOONG!! If API says that you must put the assetid, you must put assetid and no other stuff!!) 😰

"332001318": {"id":"332001318","classid":"469444882","instanceid":"0","amount":"1","pos":191}

In this case, the assetid is 332001318 and isn't 469444882 as I supposed.

By the way, thank you for your time to try to solve my problem. I'll close this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants