Jelezuha Posted December 4, 2017 Report Posted December 4, 2017 var trade = manager.createOffer(steamid); trade.setMessage('ID:' + drop.id + ', Item:' + drop.market_hash_name + ', Steam ID:' + steamid + ', token:' + tradetoken); trade.setToken(tradetoken); trade.addMyItem(drop); console.log(trade) return: TradeOffer { partner: SteamID { universe: 1, type: 1, instance: 1, accountid: 389643249 }, id: null, message: 'ID:21851, Item:Baseball cap, Steam ID:76561198349908977, token:fGUAlI2j', state: 1, itemsToGive: [ { id: '1234567890123456789', //steamid assetid: '1234567890123456789', //steamid appid: 578080, contextid: '2', amount: 1 } ], itemsToReceive: [], isOurOffer: true, created: null, updated: null, expires: null, tradeID: null, fromRealTimeTrade: false, confirmationMethod: null, escrowEnds: null, rawJson: '' } trade.send(function (err, status) { if (err) { logger.error('Bank sendTrade error trade.send'.blue + err); return; } if (status == "sent" || status == "pending") { ... } }) trade.send return error: There was an error sending your trade offer. Please try again later. (26) This error only for PUBG items. CS GO and Dota send without problems.I noticed that the items have a unique id that is 8 characters longer than VS GP and STEAM How to solve this problem? Thank you in advance for your help Quote
Dr. McKay Posted December 4, 2017 Report Posted December 4, 2017 The item ID is wrong. Jelezuha 1 Quote
Jelezuha Posted December 4, 2017 Author Report Posted December 4, 2017 My prolem was in mysql connection. PUBG itemid has very big INT number. Therefore, an invalid value was returned from the database. I set settings for mysql: supportBigNumbers: true, bigNumberStrings: true Thanks for so fast answer! Quote
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.