go-samples
go-samples copied to clipboard
token expired and refresh token is not set
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
- copy the code
- click buttons to enable gmail api
- fix the misplaced
ifstatement - go run quickstart.go
Specifications
- Go version (
go version) 1.13.5 linux/386 - OS (Mac/Linux/Windows) void linux
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?