New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function redeemKey() returns undefined SubID #115
Comments
As far as I know, Valve removed support for named subs: https://twitter.com/SteamDB/status/570951174028963840 |
It worked all fine before 22th of june. |
Might be a change made by Valve. I guess McKay might have a clue |
Do you also experience this issue? |
Cannot reproduce.
|
Patch: diff --git a/components/apps.js b/components/apps.js
index 42c2f1b..4484c1c 100644
--- a/components/apps.js
+++ b/components/apps.js
@@ -499,7 +499,8 @@ SteamUser.prototype.redeemKey = function(key, callback) {
var recipeDetails = BinaryKVParser.parse(body.purchase_receipt_info).MessageObject;
if (recipeDetails.LineItemCount > 0) {
recipeDetails.lineitems.forEach(function(pkg) {
- packageList[pkg.PackageID] = pkg.ItemDescription;
+ var packageID = pkg.PackageID || pkg.packageID || pkg.packageid;
+ packageList[packageID] = pkg.ItemDescription;
});
} Also #36 (comment) |
I have no way of testing that patch, but I believe it. Classic Valve. |
Look at that! It actually worked 😄 |
Somewhere late of the 22nd of June, redeemKey started returning
{ undefined: 'GameTitle' }
for me as package(s). The game titles are correct, but the subid's are not. I assumed it was because of the Summer Sale that just started, but it still hasn't been resolved. I have this bug across devices. I don't think there is anything wrong with the code. Even if the first line of the callback isconsole.log(packages);
it prints the undefinied subid. Am I the only one with this issue? Or does it happen for others as well?The text was updated successfully, but these errors were encountered: