Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
testing-blaze opened this issue Feb 18, 2021 · 2 comments

Comments

@testing-blaze
Copy link

The API was working fine to fetch the data as per sample code on Google Sheets API v4. However, after regenerating the credential file frmo Google API Enable, i am seeing the subject error.

Sample Name

Quickstart

Expected Behavior

Successful API call to fetch data

Actual Behavior

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

Specifications

  • Java version (11)
  • OS (Mac)
@lecaros
Copy link

lecaros commented Feb 24, 2021

check if you have any token saved. If you're using Quickstart, it should be under tokens folder.

@testing-blaze
Copy link
Author

Perfect. it fixed the issue. Can you please help me with my isssue #110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants