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

Stack Overflow | Java_Alert | 3 months ago
  1. 0

    Fusion table api migration

    Stack Overflow | 4 years ago | mpsbhat
    com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request { "error" : "unauthorized_client" }
  2. 0

    Google Drive revokes my token

    Stack Overflow | 2 years ago
    com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request { "error" : "invalid_grant", "error_description" : "Token has been revoked." }
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    2 unregistered visitors
    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
      Credential.intercept
      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)
      4. com.google.api.client.auth.oauth2.Credential.executeRefreshToken(Credential.java:570)
      5. com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)
      6. com.google.api.client.auth.oauth2.Credential.intercept(Credential.java:217)
      6 frames
    3. Google HTTP Client Library for Java
      HttpRequest.execute
      1. com.google.api.client.http.HttpRequest.execute(HttpRequest.java:868)
      1 frame
    4. 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
    5. Unknown
      SheetsQuickstart.main
      1. SheetsQuickstart.main(SheetsQuickstart.java:106)
      1 frame