Jump to content
McKay Development

HTTP 404 on offer.cancel

Recommended Posts

I'm doing something very simple but I always get HTTP error 404 when calling `offer#cancel`.


        this.manager.getOffer(offer.id, (err: unknown, offer: any) => {
          if (err) {
            return logger.info('Failed to obtain offer, it cannot be cancelled.');

          logger.info(`Obtained offer ${offer.id} for cancellation.`);

          offer.cancel((err: unknown) => {
            if (err) {
              return logger.info(`Offer ${offer.id} failed to cancel.`);

            logger.info(`Offer ${offer.id} has been cancelled.`);

Is steam broken? Package outdated? Am I doing something wrong? 


error: HTTP error 404 - Error: HTTP error 404
    at SteamCommunity._checkHttpError (C:\Users\Martijn\Desktop\coding\trade-bot\node_modules\steamcommunity\components\http.js:108:9)
    at Request._callback (C:\Users\Martijn\Desktop\coding\trade-bot\node_modules\steamcommunity\components\http.js:50:61)
    at Request.self.callback (C:\Users\Martijn\Desktop\coding\trade-bot\node_modules\request\request.js:185:22)
    at Request.emit (events.js:315:20)
    at Request.<anonymous> (C:\Users\Martijn\Desktop\coding\trade-bot\node_modules\request\request.js:1154:10)
    at Request.emit (events.js:315:20)
    at IncomingMessage.<anonymous> (C:\Users\Martijn\Desktop\coding\trade-bot\node_modules\request\request.js:1076:12)
    at Object.onceWrapper (events.js:421:28)
    at IncomingMessage.emit (events.js:327:22)
    at endReadableNT (_stream_readable.js:1327:12)


Edited by Vizzy
Link to comment
Share on other sites

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.

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.

  • Create New...