com.google.api.client.auth.oauth2.TokenResponseException: 401 Unauthorized

Google Groups | Neeraj Gupta | 4 months ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.google.api.client.auth.oauth2.TokenResponseException

    401 Unauthorized

    at com.google.api.client.auth.oauth2.TokenResponseException.from()
  2. Google OAuth Client Library for Java
    TokenRequest.execute
    1. com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:105)
    2. com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)
    3. com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
    3 frames
  3. Google APIs Client Library for Java
    GoogleCredential.executeRefreshToken
    1. com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:384)
    1 frame
  4. Google OAuth Client Library for Java
    Credential.intercept
    1. com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)
    2. com.google.api.client.auth.oauth2.Credential.intercept(Credential.java:217)
    2 frames
  5. Google HTTP Client Library for Java
    HttpRequest.execute
    1. com.google.api.client.http.HttpRequest.execute(HttpRequest.java:868)
    1 frame
  6. Google APIs Client Library for Java
    AbstractGoogleClientRequest.execute
    1. com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
    2. com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
    3. com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
    3 frames
  7. Unknown
    PushServiceAccountSample.main
    1. PushServiceAccountSample.main(PushServiceAccountSample.java:90)
    1 frame