org.jenkinsci.plugins.googleplayandroidpublisher.UploadException: java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials


Solutions on the web

Solution icon of jenkins
via Jenkins JIRA by Dmytro Pohromskyy, 1 year ago
java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials

Solution icon of googlegroups
java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials

Solution icon of jenkins
via Jenkins JIRA by Dmytro Pohromskyy, 1 year ago
java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials

Solution icon of web
via jenkins-ci.org by Unknown author, 1 year ago
java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials

Solution icon of jenkins
via Jenkins JIRA by Alexander Fendt, 1 year ago
java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials

Solution icon of jenkins
via Jenkins JIRA by Andrew Lin, 1 year ago
java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials

Solution icon of jenkins
via Jenkins JIRA by Alexander Fendt, 1 year ago
java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials

Solution icon of jenkins
via Jenkins JIRA by Andrew Lin, 1 year ago
java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials

Stack trace

org.jenkinsci.plugins.googleplayandroidpublisher.UploadException: java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials
	at org.jenkinsci.plugins.googleplayandroidpublisher.CredentialsHandler.getServiceAccountCredentials(CredentialsHandler.java:60)
	at org.jenkinsci.plugins.googleplayandroidpublisher.ApkPublisher.perform(ApkPublisher.java:301)
	at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
	at hudson.model.Build$BuildExecution.post2(Build.java:185)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
	at hudson.model.Run.execute(Run.java:1766)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:410)
Caused by: java.security.GeneralSecurityException: Unable to retrieve an access token with the provided credentials
	at com.google.jenkins.plugins.credentials.oauth.RemotableGoogleCredentials.<init>(RemotableGoogleCredentials.java:70)
	at com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials.forRemote(GoogleRobotCredentials.java:204)
	at org.jenkinsci.plugins.googleplayandroidpublisher.CredentialsHandler.getServiceAccountCredentials(CredentialsHandler.java:36)
	... 10 more
Caused by: com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request
{
  "error" : "invalid_grant",
  "error_description" : "Invalid JWT: Token must be a short-lived token and in a reasonable timeframe"
}
	at com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:105)
	at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)
	at com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
	at com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:269)
	at com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)
	at com.google.jenkins.plugins.credentials.oauth.RemotableGoogleCredentials.<init>(RemotableGoogleCredentials.java:64)
	... 12 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
10 more bugmates