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

400 Bad Request while uploading bundle (TOS NOT ACCEPTED) #1042

Closed ViacheslavSiz closed 2 years ago

ViacheslavSiz commented 2 years ago

Describe the bug

400 Bad Request while uploading bundle { "code": 400, "errors": [ { "domain": "global", "message": "UploadException: TOS_NOT_ACCEPTED [[]] (com..app)", "reason": "failedPrecondition" } ], "message": "UploadException: TOS_NOT_ACCEPTED [[]] (com..app)", "status": "FAILED_PRECONDITION" }

How To Reproduce

./gradlew uploadPrivateBundle

I did not find any TOS I have to accept anywhere

SUPERCILEX commented 2 years ago

You need to accept the terms of service in the play console.

ViacheslavSiz commented 2 years ago

@SUPERCILEX thanks, thats what I can really read from the error. But I can not find anywhere any place to accept TOS. Not in play console under API section, nor in google console

SUPERCILEX commented 2 years ago

Unfortunately I haven't seen this before so your best bet would be to contact play support and ask them about it.

AntipovAlexander commented 2 years ago

hey

faced the same issue. @ViacheslavSiz have you found where the TOS can be accepted?

AleksandarIlic commented 1 year ago

Hey @ViacheslavSiz and @AntipovAlexander,

Did you find the cause for this issue? I'm experiencing the same problem when I try to uploadPrivateBundle.

We have Android app in the PlayStore under Open Testing track and no Production builds. I'm wondering if this is the problem.

AleksandarIlic commented 1 year ago

Hey @ViacheslavSiz and @AntipovAlexander,

Did you find the cause for this issue? I'm experiencing the same problem when I try to uploadPrivateBundle.

We have Android app in the PlayStore under Open Testing track and no Production builds. I'm wondering if this is the problem.

publishBundle works like a charm without any changes.