Jump to content
McKay Development

depots not returned from getProductInfo method


mariachi

Recommended Posts

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?

Link to comment
Share on other sites

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 by Dr. McKay
Link to comment
Share on other sites

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)

 

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.

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