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

getOfferToken is broken #273

Closed
TrueCarry opened this issue Jun 18, 2016 · 1 comment
Closed

getOfferToken is broken #273

TrueCarry opened this issue Jun 18, 2016 · 1 comment

Comments

@TrueCarry
Copy link

TrueCarry commented Jun 18, 2016

Apparently steam broke https://steamcommunity.com/my/tradeoffers/privacy this url, so you should use full one now.
I've changed my local code to

SteamTradeOffers.prototype.getOfferToken = function(steamid, callback) {
  if(typeof steamid == 'function') {
    callback = steamid;
    steamid = null;
  }
  this._request.get({
    uri: communityURL + (steamid
        ? `/profiles/${steamid}/tradeoffers/privacy`
        : `/my/tradeoffers/privacy`)

Not sure if it's best way to handle this, but it works.

@alex7kom
Copy link
Owner

alex7kom commented Jun 18, 2016

It also works with plain HTTP http://steamcommunity.com/my/tradeoffers/privacy which makes me think that it is a misconfiguration of Steam CDN. So I'd like to wait a bit before making any changes to the library.

alex7kom added a commit that referenced this issue May 13, 2018
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