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

Publishing fails with 400 Bad Request #669

Closed ghost closed 5 years ago

ghost commented 5 years ago

Describe the bug

Hi,

Everything was working perfectly for a long time until recently. It fails with next main error:

com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request
  {
    "error" : "invalid_grant",
    "error_description" : "Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values and use a clock with skew to account for clock differences between systems."
  }

How To Reproduce

Task executed: ./gradlew publishReleaseApk

Versions

Versions:

Hope you will give me at least the direction where i need to look for the problem.

Thanks!

SUPERCILEX commented 5 years ago

Sadly, there's not much I can do. I would say just wait it out or contact support through the play console. Also, make sure nothing changed in your app recently and maybe try on another computer? Sorry I can't be more helpful.

ghost commented 5 years ago

Hi,

Maybe it will be useful for those who encounter the same problem: Clock on my MacBook was wrong for some unknown reasons...

SUPERCILEX commented 5 years ago

Oh lol, glad you figured it out!