java-samples icon indicating copy to clipboard operation
java-samples copied to clipboard

401 Unauthorized

Open gabrielHneini opened this issue 5 years ago • 1 comments

Sample Name

Gmail Quickstart

Expected Behavior

Connection OK

Actual Behavior

401 Unauthorized

Specifications

  • Java version 8
  • OS (Mac)

Tried the Quickstart Gmail api and used the code posted in the documentation but I kept having Exception in thread "main" com.google.api.client.auth.oauth2.TokenResponseException: 401 Unauthorized

gabrielHneini avatar Feb 23 '20 12:02 gabrielHneini

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

lecaros avatar Feb 24 '21 23:02 lecaros