Vizzy Posted May 11, 2022 Report Posted May 11, 2022 (edited) I'm doing something very simple but I always get HTTP error 404 when calling `offer#cancel`. Snippet this.manager.getOffer(offer.id, (err: unknown, offer: any) => { if (err) { logger.error(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) { logger.error(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 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 May 11, 2022 by Vizzy Quote
Dr. McKay Posted May 11, 2022 Report Posted May 11, 2022 Valve removed the API call to cancel and decline offers. This is fixed in 2.10.5. Vizzy 1 Quote
christianwdev Posted May 11, 2022 Report Posted May 11, 2022 1 hour ago, Dr. McKay said: Valve removed the API call to cancel and decline offers. This is fixed in 2.10.5. Thanks for getting this fixed so quickly, thought it was an issue on my end. 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.