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.1k stars 340 forks source link

Internal server error when running bootstrapListing and other tasks #1015

Open safaorhan opened 2 years ago

safaorhan commented 2 years ago

Describe the bug

I have a developer account in which I have a private (managed google play) app.

I previously published a version of this app manually and verified users within the organization can download / install it.

I've been trying to publish another version over GPP plugin or to run other tasks like bootstrapListing but constantly getting a 500 internal server error for days.

Do you have any idea how to trouble-shoot this problem?

Does this plugin work with private apps too?

Do private apps require additional configuration on GPP's end?

Things I double-checked

Versions

Tasks executed

bootstrapListing, bootstrapReleaseListing, publishApk, and many others.

Expected behavior

I should be able to publish an apk or run bootstrapListing task without an error.

Additional context

Execution failed for task ':app:bootstrapReleaseListing'.
> Multiple task action failures occurred:
> A failure occurred while executing com.github.triplet.gradle.play.tasks.Bootstrap$DetailsDownloader
> 500 Internal Server Error
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/***/edits
{
"code": 500,
"errors": [
{
"domain": "global",
"message": "Internal error encountered.",
"reason": "backendError"
}
],
"message": "Internal error encountered.",
"status": "INTERNAL"
}
> A failure occurred while executing com.github.triplet.gradle.play.tasks.Bootstrap$ListingsDownloader
> 500 Internal Server Error
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/***/edits
{
"code": 500,
"errors": [
{
"domain": "global",
"message": "Internal error encountered.",
"reason": "backendError"
}
],
"message": "Internal error encountered.",
"status": "INTERNAL"
}
> A failure occurred while executing com.github.triplet.gradle.play.tasks.Bootstrap$ReleaseNotesDownloader
> 500 Internal Server Error
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/***/edits
{
"code": 500,
"errors": [
{
"domain": "global",
"message": "Internal error encountered.",
"reason": "backendError"
}
],
"message": "Internal error encountered.",
"status": "INTERNAL"
}
SUPERCILEX commented 2 years ago

Unfortunately, there's not much advice I can offer about 500s since they don't tell you what went wrong. One thing to check would be that your service account was created in the same GCP project that's linked to the play console (other people have gotten 500s on permission errors before). Otherwise, you'll probably have more luck contacting play support.

safaorhan commented 2 years ago

Yeah, I saw the other 500 error threads as well.

I also reached out to play support, created a stackoverflow question and asked around local dev communities.

One thing to check would be that your service account was created in the same GCP project that's linked to the play console (other people have gotten 500s on permission errors before)

We checked that but I'll let the owner check there once again.

safaorhan commented 2 years ago

After talking to the Play Support I'm thinking that maybe I need to use Custom App Publishing API to publish apks for private apps.

Does, by any chance, this plugin support using Custom App Publishing API instead of the standard Publishing Api?

SUPERCILEX commented 2 years ago

Ohhhhh, yeah we don't support that as I'd never heard of it before. It looks cool though and I don't see why we couldn't support it, so is this something you'd be interested in?

safaorhan commented 2 years ago

I'm not even sure about the scope of this API and not yet confirmed if the Publishing API can't be used to release private apps.

But if it's so, it would be great if I could use gradle-play-publisher to publish private apps too.

I will wait for the conversation with Play Support to finalize and then report back my findings here.

Perhaps I can open a separate issue to discuss what it needs to be done to integrate custom app publishing api to the plugin.

Thanks :)

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.