bitrise-steplib / steps-google-play-deploy

MIT License
54 stars 38 forks source link

Receiving 500 errors when uploading multiple APKs: "Error 500: Internal error encountered., backendError" #151

Closed steliosfran closed 1 year ago

steliosfran commented 1 year ago

Troubleshooting

Issue description

Over the past 10 days, we are consistently seeing 500 errors from the Google Play API, without changing anything in the configuration of our releases.

We are uploading three APKs at once in the internal track (not using app bundles) (documentation)

Bitrise info

Upload apks or app bundles
Uploading /bitrise/deploy/X.apk 1/3
Uploaded apk version: X1
Uploading /bitrise/deploy/Y.apk 2/3
Uploaded apk version: Y1
Uploading /bitrise/deploy/Z.apk 3/3
Uploaded apk version: Z1
Done uploading of 3 apps
New version codes to upload: X1, Y1, Z1
Applications uploaded

Update track
Release version codes are: [X1 Y1 Z1]
internal track will be updated.
 updated track: internal
Track updated

Committing edit
Google Play API responded with an unknown error
Suggestion: create a release manually in Google Play Console because the UI has the capability to present the underlying error in certain cases
Failed to commit edit, error: googleapi: Error 500: Internal error encountered., backendError
  

Steps to reproduce

  1. Upload multiple APKs using this step
    • Expected: Upload succeeds
    • Actual: Upload fails with the following error: Failed to commit edit, error: googleapi: Error 500: Internal error encountered., backendError
steliosfran commented 1 year ago

We tried to upload the APKs manually which gave us a more helpful error message in the Play Console. We had to update the billing library before targeting Android 14.

Unfortunately this step cannot communicate the exact error message if there is any, so if this happens to anyone, just try to upload the APKs manually to get the real error.