java-samples
java-samples copied to clipboard
com.google.api.client.auth.oauth2.TokenResponseException: 401 Unauthorized
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)
check if you have any token saved. If you're using Quickstart, it should be under tokens folder.
Perfect. it fixed the issue. Can you please help me with my isssue https://github.com/googleworkspace/java-samples/issues/110