-
Notifications
You must be signed in to change notification settings - Fork 100
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
gmail quickstart.go will not retrieve a token #76
Comments
I am seeing the same problem. |
same here |
I was having the same problem as well. A workaround is to configure as stated in the instructions, then when running This isn't a long term solution and I'd encourage the Google folks to follow through on a more comprehensive fix. |
This same issue happens with the Google Drive quickstart.go |
I have the same problem |
Same problem with the Google Sheets example. Seems like a general problem, which is disappointing given this is intended to be learning material. |
This problem is also present in the calendar example, and I suspect many other too. The reason is that the I happened to stumble upon exactly such listening implementation of this function in another repo. It's almost a drop-in replacement. One just needs to add a few imports, change the function name and pass the context, and it works! |
Did anyone have a better example? |
hello people, I've found a workaround to get past that issue. I just did the same in python and the Just run:
Here's the code (it's a drive download, haven't cleaned it)
|
Thanks much, this helped. |
thank you addisonjones3 for the solution - worked for me |
Expected Behavior
Following the gmail quickstart.go guide should produce a token.json file
Actual Behavior
The instructions ask to go to http://localhost:8000 which produces a site can't be reached dialog box
BTW - the quickstart.py works as expected. There seems to be something missing from the quickstart.go file if it really does need a webserver for localhost:8000.
Steps to Reproduce the Problem
Specifications
go version
) go version go1.19.1 linux/amd64The text was updated successfully, but these errors were encountered: