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

token expired and refresh token is not set #41

Open
isomorphisms opened this issue Jan 9, 2020 · 1 comment
Open

token expired and refresh token is not set #41

isomorphisms opened this issue Jan 9, 2020 · 1 comment
Assignees

Comments

@isomorphisms
Copy link

Expected Behavior

load labels with go run quickstart

Actual Behavior

unable to retrieve labels: Get https://www.googleapis.com/gmail/v1/users/isomorphismes%20gmail.com/labels?alt=json&prettyPrint=false: oauth2: token expired and refresh token is not set
exit status 1

Steps to Reproduce the Problem

  1. copy the code
  2. click buttons to enable gmail api
  3. fix the misplaced if statement
  4. go run quickstart.go

Specifications

  • Go version (go version) 1.13.5 linux/386
  • OS (Mac/Linux/Windows) void linux
@asrivas
Copy link
Contributor

asrivas commented Jan 29, 2020

Do you have a token.json in your working directory? Please try deleting it and running the quickstart again. Which if statement are you referring to in #3?

@asrivas asrivas self-assigned this Jan 29, 2020
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