-
Notifications
You must be signed in to change notification settings - Fork 73
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
HttpError 400 "Invalid value for Long:" when updating leaderboards #23
Comments
Can you try determining which line in the CSV is causing the failure and sharing the offending row? |
I get the same error reported by Daxliar. I am using the same p12 and svcAccount arguments. The script works fine with achievements. I inserted a print statement after line 855 in games-config.py. See below
I ran the tool along with logging_level DEBUG and here is my output. I removed my svcAccount and leaderboard id & any other authentication keys in the log for security reasons. python games-config.py --logging_level DEBUG --p12 key.p12 --svcAccount xxxxxxxxxxxxxxxxx leaderboard insert xxxxxxxxxxxxx --incsv output.csv |
Hello - its been a while since I posted this log. Any update on this would be greatly appreciated. |
Any update on this? Is really frustrating when you have to update manually a lot of leaderboards having many translations... |
Oof, I am no longer working on this but can try and find out. |
As far as I can tell, the error is occurring because the id is invalid: {"scoreOrder":"LARGER_IS_BETTER", "scoreMin": "", "token": "", "scoreMax": "", "draft": {"scoreFormat": {"currencyCode": "", "suffix": {"many": {"translations": [{"locale": "", "value": ""}]}, "two": {"translations": [{"locale": "", "value": ""}]}, "one": {"translations": [{"locale": "", "value": ""}]}, "few": {"translations": [{"locale": "", "value": ""}]}, "zero": {"translations": [{"locale": "", "value": ""}]}, "other": {"translations": [{"locale": "", "value": ""}]}}, "numberFormatType": "NUMERIC", "numDecimalPlaces": "0"}, "iconUrl": "", "name": {"translations": [{"locale": "en-US", "value": "TopScore test"}]}, "sortRank": "4"}, "id": ""}' See /FYI @claywilkinson, who I believe originally authored the tool. |
Thank you very much @gguuss |
After downloading all the leaderboards...
python games-config.py leaderboard update
If I try to update the same leaderboard with the same csv just generated I keep getting
googleapiclient.errors.HttpError: <HttpError 400 when requesting https://www.googleapis.com/games/v1configuration/leaderboards/xxxxxxxxxxxxxx?alt=json returned "Invalid value for Long:">
I've used the tool to download and update the achievements without any issue (using the same p12 and svcAccount arguments).
I don't get if it's a bug or I'm doing something wrong.
The text was updated successfully, but these errors were encountered: