Jump to content
McKay Development

Recommended Posts

Posted

Essentially it appears `p` in the query string in /inventoryhistory is blacklisted and will unconditionally error out. Just with this hilariously enough. ?foobar22=1 is fine. It looks like they're doing something more or less like primary key-based paging now with after_time and after_trade. Which must be interesting on their end sorting-wise. Also the pagination stat regexps are no longer valid because they apparently no longer exist as such. So fix-wise I guess remove the regexp lines and avoid using the properties. Also remove "&p=" + options.page from inventoryhistory.js. These things appear to be the only breaking changes. No actual markup changed beyond that inner text. Which was nice of them I suppose.

 

Overall an interesting strategy of load reduction on Valve's part. I must say.

  • 2 weeks later...
Posted

My bots rely very heavily on this method (allows me to confirm item deposits without the need for my bots to have an API key). I spent a good 15 minutes wondering why I was receiving an error on every single attempt. Any update to the module that will allow me to use this as before without a work-around would be greatly appreciated.

Posted

Remove the &p= part from the URL in components/inventoryhistory.js as well as the code that tries to capture the pagination data (which will lead to an undefined reference otherwise). This will however result in losing that metadata and only getting the first page unless you want to add logic for after_trade.

 

Naturally this qualifies as a workaround and is probably not as clean as what the upstream fix will look like. But until there's something pushed don't know what else to tell you :/

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