Google-api-python-client: Track names in request path and request body must match error when uploading APK

Created on 12 Mar 2020  路  7Comments  路  Source: googleapis/google-api-python-client

Has something changed on google play service side, we have CI task that uploads builds to beta track.

These scripts worked last week, and this morning they are returning following error.

HttpError 400 when requesting https://www.googleapis.com/androidpublisher/v3/applications/app.id/edits/XXXXXX/tracks/beta?alt=json returned "Track names in request path and request body must match."

triage me

Most helpful comment

We changed our upload script include track in response body and we were able to upload our APKs.

Diff, it helps is attached below.

However, it is concerning that something on service side changed without any prior notice!

             editId=edit_id,
             track=track,
             packageName=package_name,
-            body={u'releases': [{
+            body={u'track': track,
+                  u'releases': [{
                   u'versionCodes': [str(apk_response['versionCode'])],
                   u'status': u'completed',
             }]}).execute()

All 7 comments

This looks like same issue as #839

Getting this as well. Started last few days

This is blocking me as well.

We changed our upload script include track in response body and we were able to upload our APKs.

Diff, it helps is attached below.

However, it is concerning that something on service side changed without any prior notice!

             editId=edit_id,
             track=track,
             packageName=package_name,
-            body={u'releases': [{
+            body={u'track': track,
+                  u'releases': [{
                   u'versionCodes': [str(apk_response['versionCode'])],
                   u'status': u'completed',
             }]}).execute()

@snijsure that worked me. Thanks.

Hi,

This library provides a thin wrapper around the REST API. If you experience issues that you suspect are backend issues, please reach out to Google Play Developer Support.

Thanks!

Was this page helpful?
0 / 5 - 0 ratings