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 339 forks source link

Getting forbidden with error code 403 #1081

Closed devsideal closed 1 year ago

devsideal commented 1 year ago

Suddenly I'm getting this error:

> Task :app:publishReleaseBundle FAILED
> Task :commitEditForComDotTaskeasyDotMobileDotBeta SKIPPED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:publishReleaseBundle'.
> A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishBundle$Processor
  > There was a failure while executing work items
     > A failure occurred while executing com.github.triplet.gradle.play.tasks.PublishBundle$BundleUploader
        > 403 Forbidden
          POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/com.taskeasy.mobile.beta/edits

{
   "code": 403,
   "details": [{
        "@type": "type.googleapis.com/google.rpc.Help"
    },
    {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "CONSUMER_INVALID"
    }
   ],
   "errors": [{
    "domain": "global",
    "message": "Project #1234567899 has been deleted.",
    "reason": "forbidden"
   }],
   "message": "Project #1234567899 has been deleted.",
   "status": "PERMISSION_DENIED"
}
devsideal commented 1 year ago

Sorry, my bad, There somebody accidentally deleted the project from the google API console, After recovering it's working.