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

Not able to publish app to production track #758

Closed nishithkhanna closed 4 years ago

nishithkhanna commented 4 years ago

Hello, I am not able to publish apk to production track but internal track is working fine.

Task :commitEditForComDotBritDotSwiftinstaller FAILED
Committing changes

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':commitEditForComDotBritDotSwiftinstaller'.
> A failure occurred while executing com.github.triplet.gradle.play.tasks.CommitEdit$Committer
   > 500 Internal Server Error
     {
       "code" : 500,
       "message" : null
     }

But internal track is working without any issues. I tried to build lots of times but issue remains same. I am trying to this in jenkins and my plugin version is 2.6.2. Also recently the app was transferred to another account. So maybe it is related to that?

SUPERCILEX commented 4 years ago

Maybe it's this? https://github.com/Triple-T/gradle-play-publisher/issues/752#issuecomment-567418743. Unfortunatly, I have to give you the same answer I gave that other person:

There's nothing I can do about that since it's a 500 error with no message.

nishithkhanna commented 4 years ago

Hi, Actually I figured out why it happened. I followed readme and in that manage production release was turned off when creating new user in play console. So I didn't check it too. That's why it was happening for production track. Idk if you intentionally did it in readme. But thanks anyways.

kamilj commented 3 years ago

I have the same problem when publishing alpha version

play {   
        track.set("alpha")
        releaseStatus.set(ReleaseStatus.COMPLETED)
        serviceAccountCredentials.set(file('api-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json'))
}
[12:15:56][Gradle failure report] > A failure occurred while executing com.github.triplet.gradle.play.tasks.CommitEdit$Committer
[12:15:56][Gradle failure report]    > 500 Internal Server Error
[12:15:56][Gradle failure report]      POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/com.domain/edits/235322605215050878406:commit
[12:15:56][Gradle failure report]      {
[12:15:56][Gradle failure report]        "code" : 500,
[12:15:56][Gradle failure report]        "errors" : [ {
[12:15:56][Gradle failure report]          "domain" : "global",
[12:15:56][Gradle failure report]          "message" : "Internal error encountered.",
[12:15:56][Gradle failure report]          "reason" : "backendError"
[12:15:56][Gradle failure report]        } ],
[12:15:56][Gradle failure report]        "message" : "Internal error encountered.",
[12:15:56][Gradle failure report]        "status" : "INTERNAL"
[12:15:56][Gradle failure report]      }
[12:15:56][Gradle failure report] 
kamilj commented 3 years ago

@nishithkhanna Google mistakenly disabled the API. All you need to do in the console is turn it back on (API access ). @SUPERCILEX You can add warning message in case of similar error.