Reputation: 176
I'm using node-steamcommunity to get user's inventory The module responded "[Error: malformed response]" After doing some debugging I've managed to see the raw response from steamcommunity server (request to: https://steamcommunity.com/profiles/STEAM_ID/inventory/json/570/1/): The response is
{"success": false}
The problem is that the normal response should contain the error like this:
{"success": false, "Error": "The profile is private"}
So now I can neither get the user's inventory nor the reason why I can't do this. Could some one point me to the right way of getting the user's inventory from steam
Update:
after doing some investigation I've found something interesting:
Does anyone has an idea what is wrong?
Upvotes: 0
Views: 443
Reputation: 2977
1 is not a correct contextid for Dota 2 (570).
You're looking for https://steamcommunity.com/profiles/STEAM_ID/inventory/json/570/2/ (notice the 2 at the end instead of 1).
Upvotes: 1
Reputation: 45
You tried accepting trade? If yes then maybe need use:
let key = SteamTotp.getConfirmationKey(identity_secret, time, 'allow');
key is argument for response function
Upvotes: 0