mariachi Posted January 7, 2021 Report Posted January 7, 2021 getProductInfo([730], [], (apps, packages, unknownApps, unknownPackages) => { // should contain: // packages['730'].appinfo.depots['731'] }) When getting data from CS:GO depots is no longer present on the returned object. This is used to get the latest manifest ID. Is there another way of getting this? Quote
Dr. McKay Posted January 8, 2021 Report Posted January 8, 2021 (edited) For some reason, CS:GO now requires an access token to get extended information like depots. You can either use getProductAccessToken and pass the access token to getProductInfo as per the readme, or you could just pass true for the optional includeTokens parameter, like so: getProductInfo([730], [], true, (apps, packages, unknownApps, unknownPackages) => { // should contain: // packages['730'].appinfo.depots['731'] }) Please note that if you're using steam-user v4 (as you should be), the first argument to the callback is err. Edit: Also be aware that you're only going to get a token if you own CS:GO. If your account doesn't own CS:GO, you can request a free-on-demand license for it. Edited January 8, 2021 by Dr. McKay Quote
mariachi Posted January 8, 2021 Author Report Posted January 8, 2021 I actually tried that at one point but might have messed up the parameters, cause I got an http/https related error calling that method. Will give it another go later today. Thanks for swift reply. Quote
mariachi Posted January 8, 2021 Author Report Posted January 8, 2021 Passing true works. Next step in my code is downloading vpk files which now produces this error: (node:39157) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:" at new ClientRequest (_http_client.js:155:11) at Object.request (http.js:50:10) at download (/Users/mariachi/Development/projects/csgo-inventory-cms/node_modules/steam-user/components/cdn.js:494:28) 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.