Jump to content
McKay Development

Error when sending trade offer consistently


Recommended Posts

Posted

I keep getting this error when trying to send an offer.

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

at Object.exports.makeAnError (C:\Users\User\Desktop\Folder\Folder\node_modules\steam-tradeoffer-manager\lib\helpers.js:17:12)
at SteamCommunity.manager._community.httpRequestPost (C:\Users\User\Desktop\Folder\Folder\node_modules\steam-tradeoffer-manager\lib\classes\
TradeOffer.js:349:12)
at Request._callback (C:\Users\User\Desktop\Folder\Folder\node_modules\steamcommunity\components\http.js:67:15)
at Request.self.callback (C:\Users\User\Desktop\Folder\Folder\node_modules\request\request.js:185:22)
at Request.emit (events.js:198:13)
at Request.<anonymous> (C:\Users\User\Desktop\Folder\Folder\node_modules\request\request.js:1161:10)
at Request.emit (events.js:198:13)
at Gunzip.<anonymous> (C:\Users\User\Desktop\Folder\Folder\node_modules\request\request.js:1083:12)
at Object.onceWrapper (events.js:286:20)
at Gunzip.emit (events.js:203:15) eresult: 26 }

 

Related Code:

	manager.getOffer(Number(messagesplit[1]), function(err, offer){
            if(err){
                console.log(err)
                return;
            }

            offerSend = manager.createOffer(offer.partner.getSteamID64());
            offerItems = offer.itemsToReceive;

           itemAmount = offerSend.addMyItems(offerItems)

                console.log("A request has been initiated to return items to " + offerSend.partner.getSteamID64() + "\nFor item amount: " + itemAmount + "\nCode: " + offer.message + "\nTime: " + Date.now())
                offerSend.setMessage("Returning " + itemAmount + " items to user.")
                offerSend.send(function(err, status) {
                    if (err) {
                        console.log(err)
                        console.log("Return request from " + offerSend.partner.getSteamID64() + " has failed.")
                        client.chatMessage(steamid, 'Notification | An error occured while sending the offer. | The issue has been reported.');
                        client.chatMessage(config.ownerID, 'https://steamcommunity.com/profiles/' + steamid + ' could not get their items returned.');
                        botMakingOffer = false
                        return;
                    }else{
                        client.chatMessage(steamid, 'Notification | Dome Bot is making a trade offer.');
                    }
                });

        });

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