android-play-publisher-api icon indicating copy to clipboard operation
android-play-publisher-api copied to clipboard

Extra brackets in Publisher API sample

Open vivialearn opened this issue 1 year ago • 0 comments

I got a 400 error when running code based on this line:

https://github.com/googlesamples/android-play-publisher-api/blob/f4e9a7609f1528ac82fced693e0bff2939ce2931/v3/python/upload_apks_rollout.py#L67

The error was:

"Invalid value at 'track_config.releases[0].version_codes[0]' (TYPE_INT64), "[5]"".
Details: "[{'@type': 'type.googleapis.com/google.rpc.BadRequest', 'fieldViolations': [{'field': 'track_config.releases[0].version_codes[0]', 'description': 'Invalid value at \'track_config.releases[0].version_codes[0]\' (TYPE_INT64), "[5]"'}]}]"

When I removed the inner brackets, the error disappeared:

u'versionCodes': [str(apk_response['versionCode'])]

vivialearn avatar Apr 27 '23 17:04 vivialearn