Triple-T / gradle-play-publisher

GPP is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata.
MIT License
4.13k stars 341 forks source link

Fail when uploading the AAB to internal sharing at 76% #847

Closed mochadwi closed 4 years ago

mochadwi commented 4 years ago

Describe the bug

Here's the error log

Execution failed for task ':app:uploadStagingDebugPrivateBundle'.
> A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishInternalSharingBundle$BundleUploader
   > 500 Internal Server Error
     PUT https://www.googleapis.com/upload/androidpublisher/v3/applications/internalappsharing/<my.package>/artifacts/bundle?uploadType=resumable&upload_id=<string: upload id>
     {
       "code" : 500,
       "errors" : [ {
         "domain" : "global",
         "message" : "Internal error encountered.",
         "reason" : "backendError",
         "debugInfo" : "detail: \"[ORIGINAL ERROR] generic::internal: com.google.net.rpc3.client.RpcClientException: <eye3 title=\\'/DocumentService.PublishDocumentInstant, RESOURCE_EXHAUSTED\\'/> SERVER_ERROR;androidpublisher.document/DocumentService.PublishDocumentInstant;RPC is not authorized or exceeds rate limit allowed by ACL;StartTimeMs=1598213015399;unknown;Deadline(sec)=60.0;ResFormat=AUTOMATIC;ServerTimeSec=3.4E-5;LogBytes=256;FailFast;EffSecLevel=none;ReqFormat=AUTOMATIC;ReqID=bcbad8176eebfe35;GlobalID=0;Server=[2002:a66:94c4:0:b029:14a:4f85:2bb1]:8101\\n\\tSuppressed: java.util.concurrent.ExecutionException: \\n\"\n"
       } ],
       "message" : "Internal error encountered.",
       "status" : "INTERNAL"
     }

How To Reproduce

When running app:uploadStagingDebugPrivateBundle but always failing when uploading.

Versions

Tasks executed

upload<BuildVariant>PrivateBundle

Expected behavior

Shoulnd't be failed uploading an internal sharing AAB.

Additional context (if a crash, provide stack trace)

TODO: Will add this later if necessary

SUPERCILEX commented 4 years ago

There's nothing this plugin can do. The server crapped out, and I guess you just have to retry. If it keeps happening, please contact Play Support. I can't really do anything from my end.

mochadwi commented 3 years ago

This is due to Google Play Console -> API Access (is missing), we don't know why for sure, it suddenly missing, and we created another service account + linked account, then it works

The error occurred only for channel: alpha, beta & production

but internal sharing still able to uploads